pub struct TableTheme {Show 14 fields
pub header_bg: [u8; 4],
pub header_fg: [u8; 4],
pub row_bg: [u8; 4],
pub row_stripe_bg: [u8; 4],
pub selection_bg: [u8; 4],
pub selection_fg: [u8; 4],
pub border_color: [u8; 4],
pub focus_ring_color: [u8; 4],
pub cell_fg: [u8; 4],
pub footer_bg: [u8; 4],
pub footer_fg: [u8; 4],
pub cell_padding_x: f32,
pub cell_padding_y: f32,
pub focus_radius: f32,
}Expand description
Colour tokens for the table widget, expressed as RGBA [u8; 4] arrays.
All colours use pre-multiplied-alpha conventions: a == 0 means
fully transparent, a == 255 means fully opaque.
The defaults correspond to the COOLJAPAN Tokyo Night dark palette.
Fields§
§header_bg: [u8; 4]Background colour of the column header row.
header_fg: [u8; 4]Foreground (text) colour of the column header row.
row_bg: [u8; 4]Background colour for data rows (even rows when zebra striping is off).
row_stripe_bg: [u8; 4]Background colour for alternate (odd) rows in zebra-striping mode.
selection_bg: [u8; 4]Background colour for the currently selected / highlighted row.
selection_fg: [u8; 4]Foreground (text) colour for the currently selected row.
border_color: [u8; 4]Border / grid-line colour between rows and columns.
focus_ring_color: [u8; 4]Background colour of the cell that holds keyboard focus.
cell_fg: [u8; 4]Default foreground (text) colour for all data cells.
Background colour for the footer (aggregate) row, if present.
Foreground (text) colour for the footer row.
cell_padding_x: f32Cell horizontal padding derived from the spacing scale (logical pixels).
cell_padding_y: f32Cell vertical padding derived from the spacing scale (logical pixels).
focus_radius: f32Border radius for the focus ring (logical pixels).
Implementations§
Trait Implementations§
Source§impl Clone for TableTheme
impl Clone for TableTheme
Source§fn clone(&self) -> TableTheme
fn clone(&self) -> TableTheme
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TableTheme
impl Debug for TableTheme
Source§impl Default for TableTheme
impl Default for TableTheme
Source§impl PartialEq for TableTheme
impl PartialEq for TableTheme
Source§fn eq(&self, other: &TableTheme) -> bool
fn eq(&self, other: &TableTheme) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TableTheme
Auto Trait Implementations§
impl Freeze for TableTheme
impl RefUnwindSafe for TableTheme
impl Send for TableTheme
impl Sync for TableTheme
impl Unpin for TableTheme
impl UnsafeUnpin for TableTheme
impl UnwindSafe for TableTheme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more