pub struct ComboBoxTheme {
pub background_color: Option<Rgba>,
pub min_height: Option<f32>,
pub min_width: Option<f32>,
pub arrow_icon_size: Option<f32>,
pub arrow_area_width: Option<f32>,
pub disabled_opacity: Option<f32>,
pub disabled_text_color: Option<Rgba>,
pub hover_background: Option<Rgba>,
pub disabled_background: Option<Rgba>,
pub font: Option<FontSpec>,
pub border: Option<WidgetBorderSpec>,
}Expand description
ComboBox / dropdown trigger sizing.
Fields§
§background_color: Option<Rgba>ComboBox background color.
min_height: Option<f32>Minimum trigger height in logical pixels.
min_width: Option<f32>Minimum trigger width in logical pixels.
arrow_icon_size: Option<f32>Dropdown arrow size in logical pixels.
arrow_area_width: Option<f32>Width of the arrow clickable area, in logical pixels. None where the
theme states no width (docs/platform-facts.md §2.24): GNOME’s dropdown
draws its arrow inline, macOS’s width is only a measured range
(~16–18px), and the iOS and Material platform presets and the community
colour-scheme presets cite none.
disabled_opacity: Option<f32>Opacity multiplier when disabled (0.0-1.0), applied to the whole
widget on top of its disabled colours (see
ThemeDefaults::disabled_opacity).
disabled_text_color: Option<Rgba>ComboBox text color when disabled.
hover_background: Option<Rgba>ComboBox background on hover.
disabled_background: Option<Rgba>ComboBox background when disabled; None, the enabled background.
font: Option<FontSpec>ComboBox font specification.
border: Option<WidgetBorderSpec>ComboBox border specification.
Implementations§
Source§impl ComboBoxTheme
impl ComboBoxTheme
Sourcepub const FIELD_NAMES: &[&str]
pub const FIELD_NAMES: &[&str]
All serialized field names for this widget theme, for TOML linting.