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<BorderSpec>,
}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.
disabled_opacity: Option<f32>Opacity multiplier when disabled (0.0-1.0).
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.
font: Option<FontSpec>ComboBox font specification.
border: Option<BorderSpec>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.
Source§impl ComboBoxTheme
impl ComboBoxTheme
Trait Implementations§
Source§impl Clone for ComboBoxTheme
impl Clone for ComboBoxTheme
Source§fn clone(&self) -> ComboBoxTheme
fn clone(&self) -> ComboBoxTheme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComboBoxTheme
impl Debug for ComboBoxTheme
Source§impl Default for ComboBoxTheme
impl Default for ComboBoxTheme
Source§fn default() -> ComboBoxTheme
fn default() -> ComboBoxTheme
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComboBoxThemewhere
ComboBoxTheme: Default,
impl<'de> Deserialize<'de> for ComboBoxThemewhere
ComboBoxTheme: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ComboBoxTheme
impl PartialEq for ComboBoxTheme
Source§impl Serialize for ComboBoxTheme
impl Serialize for ComboBoxTheme
impl StructuralPartialEq for ComboBoxTheme
Auto Trait Implementations§
impl Freeze for ComboBoxTheme
impl RefUnwindSafe for ComboBoxTheme
impl Send for ComboBoxTheme
impl Sync for ComboBoxTheme
impl Unpin for ComboBoxTheme
impl UnsafeUnpin for ComboBoxTheme
impl UnwindSafe for ComboBoxTheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more