Struct rat_theme::dark_theme::DarkTheme
source · pub struct DarkTheme { /* private fields */ }Expand description
One sample theme which prefers dark colors from the color-scheme and generates styles for widgets.
The widget set fits for the widgets provided by rat-widget, for other needs take it as an idea for your own implementation.
Implementations§
source§impl DarkTheme
impl DarkTheme
sourcepub fn dark_theme(&self) -> bool
pub fn dark_theme(&self) -> bool
Hint at dark.
sourcepub fn text_input(&self) -> Style
pub fn text_input(&self) -> Style
Text field style.
sourcepub fn text_focus(&self) -> Style
pub fn text_focus(&self) -> Style
Focused text field style.
sourcepub fn text_select(&self) -> Style
pub fn text_select(&self) -> Style
Text selection style.
sourcepub fn dialog_style(&self) -> Style
pub fn dialog_style(&self) -> Style
Background for dialogs.
sourcepub fn status_style(&self) -> Style
pub fn status_style(&self) -> Style
Style for the status line.
sourcepub fn input_style(&self) -> TextInputStyle
pub fn input_style(&self) -> TextInputStyle
Complete TextInputStyle
sourcepub fn inputmask_style(&self) -> MaskedInputStyle
pub fn inputmask_style(&self) -> MaskedInputStyle
Complete MaskedInputStyle
Complete MenuStyle
sourcepub fn table_style(&self) -> FTableStyle
pub fn table_style(&self) -> FTableStyle
Complete FTableStyle
sourcepub fn list_style(&self) -> ListStyle
pub fn list_style(&self) -> ListStyle
Complete ListStyle
Complete ButtonStyle
sourcepub fn scrolled_style(&self) -> ScrolledStyle
pub fn scrolled_style(&self) -> ScrolledStyle
Complete ScrolledStyle
sourcepub fn statusline_style(&self) -> Vec<Style>
pub fn statusline_style(&self) -> Vec<Style>
Complete StatusLineStyle for a StatusLine with 3 indicator fields. This is what I need for the minimal example, which shows timings for Render/Event/Action.
sourcepub fn msg_dialog_style(&self) -> MsgDialogStyle
pub fn msg_dialog_style(&self) -> MsgDialogStyle
Complete MsgDialogStyle.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DarkTheme
impl RefUnwindSafe for DarkTheme
impl Send for DarkTheme
impl Sync for DarkTheme
impl Unpin for DarkTheme
impl UnwindSafe for DarkTheme
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