pub struct Theme {}Fields§
§bg: Color§bg_sel: Color§bg_modal: Color§fg: Color§fg_bright: Color§border: Color§title: Color§header: Color§gutter_active: Color§gutter_marked: Color§hot: Color§warm: Color§ok: Color§dim: ColorImplementations§
Source§impl Theme
impl Theme
pub const GRUVBOX: Theme
pub fn block_style(&self) -> Style
pub fn title_style(&self) -> Style
pub fn header_style(&self) -> Style
pub fn gutter_active_style(&self) -> Style
pub fn gutter_marked_style(&self) -> Style
pub fn body_style(&self) -> Style
pub fn modal_block_style(&self) -> Style
pub fn modal_body_style(&self) -> Style
pub fn dim_style(&self) -> Style
Sourcepub fn score_color(&self, t: f64) -> Color
pub fn score_color(&self, t: f64) -> Color
Smooth heat-map between ok, warm, and hot keyed by t ∈ [0, 1]:
0.0 is pure ok (low score), 0.5 is pure warm, 1.0 is pure
hot (highest score in the visible set). Values outside the range
are clamped. Used for the score-bar colour.
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> 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