pub struct ListTheme {Show 14 fields
pub background_color: Option<Rgba>,
pub alternate_row_background: Option<Rgba>,
pub selection_background: Option<Rgba>,
pub selection_text_color: Option<Rgba>,
pub header_background: Option<Rgba>,
pub grid_color: Option<Rgba>,
pub row_height: Option<f32>,
pub header_height: Option<f32>,
pub hover_background: Option<Rgba>,
pub hover_text_color: Option<Rgba>,
pub disabled_text_color: Option<Rgba>,
pub item_font: Option<FontSpec>,
pub header_font: Option<FontSpec>,
pub border: Option<WidgetBorderSpec>,
}Expand description
List and table colors and row geometry.
Fields§
§background_color: Option<Rgba>List background fill.
alternate_row_background: Option<Rgba>Alternate row background for striped lists.
selection_background: Option<Rgba>Selected row highlight color.
selection_text_color: Option<Rgba>Text color inside a selected row.
header_background: Option<Rgba>Column header background fill.
grid_color: Option<Rgba>Grid line color between rows/columns.
row_height: Option<f32>Row height in logical pixels. None where the platform states no row
height: KDE’s rows size to their content, and GNOME’s plain list sets
no minimum height (docs/platform-facts.md §2.15).
header_height: Option<f32>Column header row height in logical pixels. None where the platform
states none: KDE’s header sizes to its content, and WinUI has no
column header (docs/platform-facts.md §2.15).
hover_background: Option<Rgba>Hovered row background color; unstated, the list’s own
background_color, no tint (a widget-to-widget rule,
resolve_widget_to_widget).
hover_text_color: Option<Rgba>Hovered row text color.
disabled_text_color: Option<Rgba>Disabled row text color.
item_font: Option<FontSpec>List item font specification.
header_font: Option<FontSpec>Column header font specification.
border: Option<WidgetBorderSpec>List border specification.
Implementations§
Source§impl ListTheme
impl ListTheme
Sourcepub const FIELD_NAMES: &[&str]
pub const FIELD_NAMES: &[&str]
All serialized field names for this widget theme, for TOML linting.