pub struct ListTheme {Show 13 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 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<BorderSpec>,
}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.
hover_background: Option<Rgba>Hovered row background color.
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<BorderSpec>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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ListTheme
impl<'de> Deserialize<'de> for ListTheme
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
impl StructuralPartialEq for ListTheme
Auto Trait Implementations§
impl Freeze for ListTheme
impl RefUnwindSafe for ListTheme
impl Send for ListTheme
impl Sync for ListTheme
impl Unpin for ListTheme
impl UnsafeUnpin for ListTheme
impl UnwindSafe for ListTheme
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