pub struct DataTableColors {Show 13 fields
pub container: Option<Hsla>,
pub header_container: Option<Hsla>,
pub header_content: Option<Hsla>,
pub row_container: Option<Hsla>,
pub striped_row_container: Option<Hsla>,
pub row_content: Option<Hsla>,
pub selected_row_container: Option<Hsla>,
pub selected_row_content: Option<Hsla>,
pub disabled_content: Option<Hsla>,
pub divider: Option<Hsla>,
pub border: Option<Hsla>,
pub caption: Option<Hsla>,
pub sort_indicator: Option<Hsla>,
}Expand description
Optional per-instance color overrides for DataTable.
Any None field falls back to the active window gpui_material_theme::MaterialTheme.
Fields§
§container: Option<Hsla>Outer table container fill (defaults to SurfaceContainerLow).
header_container: Option<Hsla>Header strip fill (defaults to SurfaceContainer).
header_content: Option<Hsla>Header label color (defaults to OnSurfaceVariant).
row_container: Option<Hsla>Default body row fill (defaults to transparent over container).
striped_row_container: Option<Hsla>Alternate row fill when DataTable::striped is enabled (defaults to SurfaceContainerLowest).
row_content: Option<Hsla>Default body cell text color (defaults to OnSurface).
selected_row_container: Option<Hsla>Selected row fill (defaults to SecondaryContainer).
selected_row_content: Option<Hsla>Selected row text and state-layer ink color (defaults to OnSecondaryContainer).
disabled_content: Option<Hsla>Disabled row or header content color (defaults to OnSurface at 38% opacity).
divider: Option<Hsla>Row divider color (defaults to OutlineVariant).
border: Option<Hsla>Outer container border color (defaults to OutlineVariant).
caption: Option<Hsla>Caption text color (defaults to OnSurfaceVariant).
sort_indicator: Option<Hsla>Active sort indicator icon tint (defaults to Primary).
Trait Implementations§
Source§impl Clone for DataTableColors
impl Clone for DataTableColors
Source§fn clone(&self) -> DataTableColors
fn clone(&self) -> DataTableColors
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DataTableColors
Source§impl Debug for DataTableColors
impl Debug for DataTableColors
Source§impl Default for DataTableColors
impl Default for DataTableColors
Source§fn default() -> DataTableColors
fn default() -> DataTableColors
Source§impl PartialEq for DataTableColors
impl PartialEq for DataTableColors
impl StructuralPartialEq for DataTableColors
Auto Trait Implementations§
impl Forget for DataTableColors
impl Freeze for DataTableColors
impl Move for DataTableColors
impl RefUnwindSafe for DataTableColors
impl Send for DataTableColors
impl Sync for DataTableColors
impl Unpin for DataTableColors
impl UnsafeUnpin for DataTableColors
impl UnwindSafe for DataTableColors
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().