pub enum Theme {
Dark,
Light,
}Expand description
Available color themes.
Variants§
Implementations§
Source§impl Theme
impl Theme
pub fn background(&self) -> Color
pub fn foreground(&self) -> Color
pub fn border(&self) -> Color
pub fn border_active(&self) -> Color
pub fn title(&self) -> Color
pub fn success(&self) -> Color
pub fn error(&self) -> Color
pub fn warning(&self) -> Color
pub fn info(&self) -> Color
pub fn highlight(&self) -> Color
pub fn selection(&self) -> Color
pub fn line_number(&self) -> Color
pub fn normal_style(&self) -> Style
Sourcepub fn border_style(&self, active: bool) -> Style
pub fn border_style(&self, active: bool) -> Style
Get border style, highlighted if active.
pub fn title_style(&self) -> Style
pub fn highlight_style(&self) -> Style
pub fn selection_style(&self) -> Style
pub fn error_style(&self) -> Style
pub fn success_style(&self) -> Style
pub fn warning_style(&self) -> Style
pub fn info_style(&self) -> Style
pub fn line_number_style(&self) -> Style
Trait Implementations§
impl Copy 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 UnwindSafe for Theme
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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