pub struct Palette {Show 16 fields
pub dim: Color,
pub dim_selected: Color,
pub highlight_bg: Color,
pub accent: Color,
pub bar: Color,
pub ok: Color,
pub warn: Color,
pub crit: Color,
pub focus: Color,
pub anon: Color,
pub file: Color,
pub shmem: Color,
pub swap: Color,
pub swap_pss: Color,
pub tile_fg: Color,
pub treemap: [Color; 6],
}Expand description
Semantic colours used by the whole UI.
Fields§
§dim: ColorSecondary text, graph chrome, unfilled bar cells.
dim_selected: Colordim, lifted so it stays readable on the tinted selected row.
highlight_bg: ColorSelected row / badge background.
Only the background is set: per-cell foregrounds (bars, deltas) must survive selection instead of being flattened to one colour.
accent: ColorTitles, table headers, sparklines.
bar: ColorShare bar in its normal (not warning/critical) range.
ok: ColorHealthy state: low memory pressure, negative deltas.
warn: ColorWarning state: 5–20% PSI, 75–90% memory use.
crit: ColorCritical state: OOM kills, >20% PSI, >90% memory use.
focus: ColorInput prompt and cursor.
anon: ColorPSS mix: anonymous pages.
file: ColorPSS mix: file-backed pages.
shmem: ColorPSS mix: shared-memory pages.
swap: ColorPSS mix: PSS-weighted swapped-out pages.
swap_pss: ColorSwap-PSS shown numerically in the detail summary.
tile_fg: ColorSecondary text drawn on treemap tiles.
treemap: [Color; 6]Treemap tile fills, cycled by group index.
Implementations§
Trait Implementations§
impl Copy for Palette
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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