pub struct ComboBoxTheme {Show 14 fields
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 hover_border_color: Option<Rgba>,
pub disabled_background: Option<Rgba>,
pub open_background: Option<Rgba>,
pub open_border_color: Option<Rgba>,
pub font: Option<FontSpec>,
pub border: Option<WidgetBorderSpec>,
}Expand description
ComboBox / dropdown trigger: colours, sizing, and states (hover, open, disabled).
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.
hover_border_color: Option<Rgba>Border colour of the trigger under the pointer. None where the theme
states none; a connector then keeps the border at rest
(docs/platform-facts.md §2.24).
disabled_background: Option<Rgba>ComboBox background when disabled; None, the enabled background.
open_background: Option<Rgba>Fill of a combo box while its popup is open, whatever the pointer
does: Breeze draws it as a pressed button, Button mixed 0.3 towards
Highlight. None: the fill the connector draws for the pointer’s
state (docs/platform-facts.md §2.24).
open_border_color: Option<Rgba>Border colour of an open combo box, drawn at border.line_width:
Breeze’s Highlight. None: the border the connector draws for the
pointer’s state (docs/platform-facts.md §2.24).
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.