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 limegreen(&self, n: usize) -> Style
pub fn limegreen(&self, n: usize) -> Style
Create a style from the given limegreen shade.
n is 0..=3
sourcepub fn bluegreen(&self, n: usize) -> Style
pub fn bluegreen(&self, n: usize) -> Style
Create a style from the given bluegreen shade.
n is 0..=3
sourcepub fn deepblue(&self, n: usize) -> Style
pub fn deepblue(&self, n: usize) -> Style
Create a style from the given deepblue shade.
n is 0..=3
sourcepub fn magenta(&self, n: usize) -> Style
pub fn magenta(&self, n: usize) -> Style
Create a style from the given magenta shade.
n is 0..=3
sourcepub fn redpink(&self, n: usize) -> Style
pub fn redpink(&self, n: usize) -> Style
Create a style from the given redpink shade.
n is 0..=3
sourcepub fn primary(&self, n: usize) -> Style
pub fn primary(&self, n: usize) -> Style
Create a style from the given primary shade.
n is 0..=3
sourcepub fn secondary(&self, n: usize) -> Style
pub fn secondary(&self, n: usize) -> Style
Create a style from the given secondary shade.
n is 0..=3
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 line_nr_style(&self) -> LineNumberStyle
pub fn line_nr_style(&self) -> LineNumberStyle
Style for LineNumbers.
sourcepub fn textarea_style(&self) -> TextAreaStyle
pub fn textarea_style(&self) -> TextAreaStyle
Complete TextAreaStyle
sourcepub fn input_style(&self) -> TextInputStyle
pub fn input_style(&self) -> TextInputStyle
Complete TextInputStyle
Complete MenuStyle
sourcepub fn table_style(&self) -> TableStyle
pub fn table_style(&self) -> TableStyle
Complete FTableStyle
sourcepub fn list_style(&self) -> ListStyle
pub fn list_style(&self) -> ListStyle
Complete ListStyle
Complete ButtonStyle
sourcepub fn scroll_style(&self) -> ScrollStyle
pub fn scroll_style(&self) -> ScrollStyle
Complete ScrolledStyle
sourcepub fn split_style(&self) -> SplitStyle
pub fn split_style(&self) -> SplitStyle
Complete Split style
sourcepub fn tabbed_style(&self) -> TabbedStyle
pub fn tabbed_style(&self) -> TabbedStyle
Complete Tabbed style
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.
pub fn file_dialog_style(&self) -> FileDialogStyle
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
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>
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