pub struct ListTheme {
pub background: Option<Rgba>,
pub foreground: Option<Rgba>,
pub alternate_row: Option<Rgba>,
pub selection: Option<Rgba>,
pub selection_foreground: Option<Rgba>,
pub header_background: Option<Rgba>,
pub header_foreground: Option<Rgba>,
pub grid_color: Option<Rgba>,
pub item_height: Option<f32>,
pub padding_horizontal: Option<f32>,
pub padding_vertical: Option<f32>,
}Expand description
List and table colors and row geometry.
Fields§
§background: Option<Rgba>List background fill.
foreground: Option<Rgba>Default item text color.
alternate_row: Option<Rgba>Alternate row background for striped lists.
selection: Option<Rgba>Selected row highlight color.
selection_foreground: Option<Rgba>Text color inside a selected row.
header_background: Option<Rgba>Column header background fill.
header_foreground: Option<Rgba>Column header text color.
grid_color: Option<Rgba>Grid line color between rows/columns.
item_height: Option<f32>Row height in logical pixels.
padding_horizontal: Option<f32>Horizontal padding inside each cell.
padding_vertical: Option<f32>Vertical padding inside each cell.
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