pub struct Theme {
pub color: bool,
pub ascii: bool,
}Fields§
§color: bool§ascii: boolImplementations§
Source§impl Theme
impl Theme
Sourcepub fn from_env(env: &dyn Fn(&str) -> Option<String>) -> Theme
pub fn from_env(env: &dyn Fn(&str) -> Option<String>) -> Theme
NO_COLOR counts when it is not empty (the convention). A locale that does not say UTF-8 means ASCII;
with no locale at all (Windows) the terminal is assumed to speak UTF-8.
pub fn ok(self) -> Style
pub fn warning(self) -> Style
pub fn critical(self) -> Style
pub fn dim(self) -> Style
pub fn accent(self) -> Style
pub fn title(self) -> Style
pub fn key(self) -> Style
Sourcepub fn selected(self) -> Style
pub fn selected(self) -> Style
The selected row: a bold band over dark gray, not reversed (TUI-FRM-09).
pub fn severity(self, severity: Severity) -> Style
pub fn selector(self) -> &'static str
pub fn offline(self) -> &'static str
pub fn refresh(self) -> &'static str
Sourcepub fn bar(self, ratio: f64, width: usize) -> String
pub fn bar(self, ratio: f64, width: usize) -> String
The glyph of a bar of ratio (0 to 1) across width cells.
Sourcepub fn marker(self, index: usize) -> &'static str
pub fn marker(self, index: usize) -> &'static str
The marker of each chart line, distinct per line (TUI-MON-02).
Sourcepub fn series(self, index: usize) -> Style
pub fn series(self, index: usize) -> Style
The color of the line of a node in a chart; the marker tells them apart without color.
pub fn arrow_up(self) -> &'static str
Trait Implementations§
impl Copy for Theme
impl Eq for Theme
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
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
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
Compare self to
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> ⓘ
Converts
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> ⓘ
Converts
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