#[non_exhaustive]pub struct Palette {
pub background: Color,
pub header_background: Color,
pub header_text: Color,
pub stripe: Color,
pub text: Color,
pub dim_text: Color,
pub positive: Color,
pub negative: Color,
}Expand description
Grid colors: Palette::new is the dark default; change its fields for others.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.background: ColorWindow background (what GpuRenderer::render clears to).
header_background: ColorHeader row bar.
header_text: ColorColumn titles.
stripe: ColorEvery other data row.
text: ColorCell text.
dim_text: ColorPlaceholders and secondary text.
positive: ColorGood news: a value rose, a check passed.
negative: ColorBad news: a value fell, a check failed.
Implementations§
Trait Implementations§
impl Copy for Palette
impl StructuralPartialEq for Palette
Auto Trait Implementations§
impl Freeze for Palette
impl RefUnwindSafe for Palette
impl Send for Palette
impl Sync for Palette
impl Unpin for Palette
impl UnsafeUnpin for Palette
impl UnwindSafe for Palette
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