pub struct CheckboxTheme {Show 13 fields
pub background_color: Option<Rgba>,
pub checked_background: Option<Rgba>,
pub indicator_color: Option<Rgba>,
pub indicator_width: Option<f32>,
pub label_gap: Option<f32>,
pub disabled_opacity: Option<f32>,
pub disabled_text_color: Option<Rgba>,
pub hover_background: Option<Rgba>,
pub disabled_background: Option<Rgba>,
pub unchecked_background: Option<Rgba>,
pub unchecked_border_color: Option<Rgba>,
pub font: Option<FontSpec>,
pub border: Option<BorderSpec>,
}Expand description
Checkbox and radio button theme: colors, indicator, label font, border, and interactive states.
Fields§
§background_color: Option<Rgba>Checkbox background color.
checked_background: Option<Rgba>Indicator background when checked.
indicator_color: Option<Rgba>Indicator (check mark / radio dot) color.
indicator_width: Option<f32>Indicator (check mark / radio dot) width in logical pixels.
label_gap: Option<f32>Space between indicator and label.
disabled_opacity: Option<f32>Opacity multiplier when disabled (0.0-1.0).
disabled_text_color: Option<Rgba>Checkbox label text color when disabled.
hover_background: Option<Rgba>Checkbox background on hover.
disabled_background: Option<Rgba>Checkbox background when disabled.
unchecked_background: Option<Rgba>Indicator background when unchecked.
unchecked_border_color: Option<Rgba>Border color when unchecked.
font: Option<FontSpec>Checkbox label font specification.
border: Option<BorderSpec>Checkbox border specification.
Implementations§
Source§impl CheckboxTheme
impl CheckboxTheme
Sourcepub const FIELD_NAMES: &[&str]
pub const FIELD_NAMES: &[&str]
All serialized field names for this widget theme, for TOML linting.
Source§impl CheckboxTheme
impl CheckboxTheme
Trait Implementations§
Source§impl Clone for CheckboxTheme
impl Clone for CheckboxTheme
Source§fn clone(&self) -> CheckboxTheme
fn clone(&self) -> CheckboxTheme
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 CheckboxTheme
impl Debug for CheckboxTheme
Source§impl Default for CheckboxTheme
impl Default for CheckboxTheme
Source§fn default() -> CheckboxTheme
fn default() -> CheckboxTheme
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CheckboxThemewhere
CheckboxTheme: Default,
impl<'de> Deserialize<'de> for CheckboxThemewhere
CheckboxTheme: 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 CheckboxTheme
impl PartialEq for CheckboxTheme
Source§impl Serialize for CheckboxTheme
impl Serialize for CheckboxTheme
impl StructuralPartialEq for CheckboxTheme
Auto Trait Implementations§
impl Freeze for CheckboxTheme
impl RefUnwindSafe for CheckboxTheme
impl Send for CheckboxTheme
impl Sync for CheckboxTheme
impl Unpin for CheckboxTheme
impl UnsafeUnpin for CheckboxTheme
impl UnwindSafe for CheckboxTheme
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