pub struct ExpanderTheme {
pub header_height: Option<f32>,
pub arrow_icon_size: Option<f32>,
pub hover_background: Option<Rgba>,
pub arrow_color: Option<Rgba>,
pub arrow_side: Option<ArrowSide>,
pub arrow_gap: Option<f32>,
pub content_indent: Option<f32>,
pub frame_enabled: Option<bool>,
pub font: Option<FontSpec>,
pub border: Option<WidgetBorderSpec>,
}Expand description
Expander / disclosure row geometry.
Fields§
§header_height: Option<f32>Collapsed header row height in logical pixels.
arrow_icon_size: Option<f32>Disclosure arrow size in logical pixels.
hover_background: Option<Rgba>Expander header background on hover.
arrow_color: Option<Rgba>Disclosure arrow/chevron color.
arrow_side: Option<ArrowSide>Which end of the header row the disclosure arrow sits at: before the
title, or at the row’s end. None where the theme states none
(docs/platform-facts.md §2.27).
arrow_gap: Option<f32>Space between the arrow’s icon box (arrow_icon_size square) and the
title after it, or, for a trailing arrow, the header content before
it, in logical pixels. None where the platform states none: AppKit
documents no disclosure geometry (docs/platform-facts.md §2.27).
content_indent: Option<f32>Horizontal distance from the expander’s leading inner edge (inside
its frame, where it has one) to the content it reveals, in logical
pixels. None where the platform states none: AppKit documents no
disclosure geometry (docs/platform-facts.md §2.27).
frame_enabled: Option<bool>Whether the expander draws a frame (its border) around its header
and the content it reveals: KDE’s has none, libadwaita’s and WinUI’s
are framed. None where the theme states none
(docs/platform-facts.md §2.27).
font: Option<FontSpec>Expander font specification.
border: Option<WidgetBorderSpec>Expander border specification.
Implementations§
Source§impl ExpanderTheme
impl ExpanderTheme
Sourcepub const FIELD_NAMES: &[&str]
pub const FIELD_NAMES: &[&str]
All serialized field names for this widget theme, for TOML linting.