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 true_dark_style(&self, bg: Color) -> Style
pub fn true_dark_style(&self, bg: Color) -> Style
Create a style from a background color. The background color is first run through Scheme::true_dark_color to ensure a really dark color.
Sourcepub fn grey_style(&self, bg: Color) -> Style
pub fn grey_style(&self, bg: Color) -> Style
Create a style from a gray-scaled version of the given colorl.
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 container_base(&self) -> Style
pub fn container_base(&self) -> Style
Container base
Sourcepub fn container_border(&self) -> Style
pub fn container_border(&self) -> Style
Container border
Sourcepub fn container_arrow(&self) -> Style
pub fn container_arrow(&self) -> Style
Container arrows
Sourcepub fn popup_base(&self) -> Style
pub fn popup_base(&self) -> Style
Background for popups.
Sourcepub fn popup_label(&self) -> Style
pub fn popup_label(&self) -> Style
Label text inside container.
Sourcepub fn popup_border(&self) -> Style
pub fn popup_border(&self) -> Style
Dialog arrows
Sourcepub fn popup_arrow(&self) -> Style
pub fn popup_arrow(&self) -> Style
Dialog arrows
Sourcepub fn dialog_base(&self) -> Style
pub fn dialog_base(&self) -> Style
Background for dialogs.
Sourcepub fn dialog_label(&self) -> Style
pub fn dialog_label(&self) -> Style
Label text inside container.
Sourcepub fn dialog_border(&self) -> Style
pub fn dialog_border(&self) -> Style
Dialog arrows
Sourcepub fn dialog_arrow(&self) -> Style
pub fn dialog_arrow(&self) -> Style
Dialog arrows
Sourcepub fn status_base(&self) -> Style
pub fn status_base(&self) -> Style
Style for the status line.
Base style for buttons.
Armed style for buttons.
Sourcepub fn month_style(&self) -> CalendarStyle
pub fn month_style(&self) -> CalendarStyle
Complete MonthStyle.
Sourcepub fn shadow_style(&self) -> ShadowStyle
pub fn shadow_style(&self) -> ShadowStyle
Style for shadows.
Sourcepub fn line_nr_style(&self) -> LineNumberStyle
pub fn line_nr_style(&self) -> LineNumberStyle
Style for LineNumbers.
Sourcepub fn textarea_style(&self) -> TextStyle
pub fn textarea_style(&self) -> TextStyle
Complete TextAreaStyle
Sourcepub fn text_style(&self) -> TextStyle
pub fn text_style(&self) -> TextStyle
Complete TextInputStyle
pub fn paragraph_style(&self) -> ParagraphStyle
pub fn choice_style(&self) -> ChoiceStyle
pub fn radio_style(&self) -> RadioStyle
Sourcepub fn checkbox_style(&self) -> CheckboxStyle
pub fn checkbox_style(&self) -> CheckboxStyle
Complete CheckboxStyle
Complete MenuStyle
Complete ButtonStyle
Sourcepub fn table_style(&self) -> TableStyle
pub fn table_style(&self) -> TableStyle
Complete TableStyle
pub fn table_header(&self) -> Style
Sourcepub fn list_style(&self) -> ListStyle
pub fn list_style(&self) -> ListStyle
Complete ListStyle
Sourcepub fn scroll_style(&self) -> ScrollStyle
pub fn scroll_style(&self) -> ScrollStyle
Scroll style
Sourcepub fn popup_scroll_style(&self) -> ScrollStyle
pub fn popup_scroll_style(&self) -> ScrollStyle
Popup scroll style
Sourcepub fn dialog_scroll_style(&self) -> ScrollStyle
pub fn dialog_scroll_style(&self) -> ScrollStyle
Dialog scroll style
Sourcepub fn split_style(&self) -> SplitStyle
pub fn split_style(&self) -> SplitStyle
Split style
Sourcepub fn view_style(&self) -> ViewStyle
pub fn view_style(&self) -> ViewStyle
View style
Sourcepub fn tabbed_style(&self) -> TabbedStyle
pub fn tabbed_style(&self) -> TabbedStyle
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 file_dialog_style(&self) -> FileDialogStyle
pub fn file_dialog_style(&self) -> FileDialogStyle
FileDialog style.
Sourcepub fn msg_dialog_style(&self) -> MsgDialogStyle
pub fn msg_dialog_style(&self) -> MsgDialogStyle
Complete MsgDialogStyle.
Sourcepub fn clipper_style(&self) -> ClipperStyle
pub fn clipper_style(&self) -> ClipperStyle
Clipper style.
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§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