pub struct GridTheme {Show 17 fields
pub bg: Hsla,
pub header_bg: Hsla,
pub filter_bg: Hsla,
pub filter_active_bg: Hsla,
pub row_header_bg: Hsla,
pub selection_bg: Hsla,
pub alt_row_bg: Hsla,
pub grid_line: Hsla,
pub header_fg: Hsla,
pub text_fg: Hsla,
pub negative_fg: Hsla,
pub sort_indicator: Hsla,
pub filter_cursor: Hsla,
pub menu_bg: Hsla,
pub menu_hover_bg: Hsla,
pub menu_fg: Hsla,
pub muted_text: Hsla,
}Fields§
§bg: Hsla§header_bg: Hsla§filter_bg: Hsla§filter_active_bg: Hsla§row_header_bg: Hsla§selection_bg: Hsla§alt_row_bg: Hsla§grid_line: Hsla§header_fg: Hsla§text_fg: Hsla§negative_fg: Hsla§sort_indicator: Hsla§filter_cursor: HslaBackground fill of the right-click context menu / filter popup surface.
Fill drawn behind the menu item currently under the pointer (hover).
Foreground color for menu item labels.
muted_text: HslaMuted text color for labels, placeholders, and secondary text inside
the filter panel and context menu. Chosen for legibility against
menu_bg / bg in both light and dark palettes.
Implementations§
Source§impl GridTheme
impl GridTheme
Sourcepub fn light() -> Self
pub fn light() -> Self
The light palette. Identical to GridTheme::default; provided as a
named constructor so callers can be explicit about intent.
Sourcepub fn dark() -> Self
pub fn dark() -> Self
A dark palette tuned to pair with the light one: light text on dark surfaces, matching accent hue (0.58) for selection/sort/menu-hover.
Sourcepub fn for_appearance(appearance: WindowAppearance) -> Self
pub fn for_appearance(appearance: WindowAppearance) -> Self
Pick the palette that matches the OS window appearance. Dark and
VibrantDark resolve to GridTheme::dark; everything else to
GridTheme::light.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GridTheme
impl RefUnwindSafe for GridTheme
impl Send for GridTheme
impl Sync for GridTheme
impl Unpin for GridTheme
impl UnsafeUnpin for GridTheme
impl UnwindSafe for GridTheme
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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().