#[non_exhaustive]pub struct ResolvedCheckboxTheme {Show 13 fields
pub background_color: Rgba,
pub checked_background: Rgba,
pub indicator_color: Rgba,
pub indicator_width: f32,
pub label_gap: f32,
pub disabled_opacity: f32,
pub disabled_text_color: Rgba,
pub hover_background: Option<Rgba>,
pub disabled_background: Option<Rgba>,
pub unchecked_background: Option<Rgba>,
pub unchecked_border_color: Option<Rgba>,
pub font: ResolvedFontSpec,
pub border: ResolvedBorderSpec,
}Expand description
Checkbox and radio button theme: colors, indicator, label font, border, and interactive states.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.background_color: RgbaCheckbox background color.
checked_background: RgbaIndicator background when checked.
indicator_color: RgbaIndicator (check mark / radio dot) color.
indicator_width: f32Indicator (check mark / radio dot) width in logical pixels.
label_gap: f32Space between indicator and label.
disabled_opacity: f32Opacity multiplier when disabled (0.0-1.0).
disabled_text_color: RgbaCheckbox 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: ResolvedFontSpecCheckbox label font specification.
border: ResolvedBorderSpecCheckbox border specification.
Trait Implementations§
Source§impl Clone for ResolvedCheckboxTheme
impl Clone for ResolvedCheckboxTheme
Source§fn clone(&self) -> ResolvedCheckboxTheme
fn clone(&self) -> ResolvedCheckboxTheme
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 ResolvedCheckboxTheme
impl Debug for ResolvedCheckboxTheme
Source§impl<'de> Deserialize<'de> for ResolvedCheckboxTheme
impl<'de> Deserialize<'de> for ResolvedCheckboxTheme
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 ResolvedCheckboxTheme
impl PartialEq for ResolvedCheckboxTheme
Source§impl Serialize for ResolvedCheckboxTheme
impl Serialize for ResolvedCheckboxTheme
impl StructuralPartialEq for ResolvedCheckboxTheme
Auto Trait Implementations§
impl Freeze for ResolvedCheckboxTheme
impl RefUnwindSafe for ResolvedCheckboxTheme
impl Send for ResolvedCheckboxTheme
impl Sync for ResolvedCheckboxTheme
impl Unpin for ResolvedCheckboxTheme
impl UnsafeUnpin for ResolvedCheckboxTheme
impl UnwindSafe for ResolvedCheckboxTheme
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