pub struct DarkTheme { /* private fields */ }Expand description
One sample theme which prefers dark colors from the color-palette 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§
Trait Implementations§
Source§impl SalsaTheme for DarkTheme
impl SalsaTheme for DarkTheme
Source§fn limegreen(&self, n: usize) -> Style
fn limegreen(&self, n: usize) -> Style
Create a style from the given limegreen shade.
n is 0..8
Source§fn bluegreen(&self, n: usize) -> Style
fn bluegreen(&self, n: usize) -> Style
Create a style from the given bluegreen shade.
n is 0..8
Source§fn secondary(&self, n: usize) -> Style
fn secondary(&self, n: usize) -> Style
Create a style from the given secondary shade.
n is 0..8
Source§fn text_input(&self) -> Style
fn text_input(&self) -> Style
Text field style.
Source§fn text_focus(&self) -> Style
fn text_focus(&self) -> Style
Focused text field style.
Source§fn text_select(&self) -> Style
fn text_select(&self) -> Style
Text selection style.
Source§fn container_base(&self) -> Style
fn container_base(&self) -> Style
Container base
Source§fn container_border(&self) -> Style
fn container_border(&self) -> Style
Container border
Source§fn container_arrow(&self) -> Style
fn container_arrow(&self) -> Style
Container arrows
Source§fn popup_base(&self) -> Style
fn popup_base(&self) -> Style
Background for popups.
Source§fn popup_border(&self) -> Style
fn popup_border(&self) -> Style
Dialog arrows
Source§fn popup_arrow(&self) -> Style
fn popup_arrow(&self) -> Style
Dialog arrows
Source§fn dialog_base(&self) -> Style
fn dialog_base(&self) -> Style
Background for dialogs.
Source§fn dialog_border(&self) -> Style
fn dialog_border(&self) -> Style
Dialog arrows
Source§fn dialog_arrow(&self) -> Style
fn dialog_arrow(&self) -> Style
Dialog arrows
Source§fn status_base(&self) -> Style
fn status_base(&self) -> Style
Style for the status line.
Base style for buttons.
Armed style for buttons.
Source§fn month_style(&self) -> CalendarStyle
fn month_style(&self) -> CalendarStyle
Complete MonthStyle.
Source§fn shadow_style(&self) -> ShadowStyle
fn shadow_style(&self) -> ShadowStyle
Style for shadows.
Source§fn line_nr_style(&self) -> LineNumberStyle
fn line_nr_style(&self) -> LineNumberStyle
Style for LineNumbers.
Source§fn textarea_style(&self) -> TextStyle
fn textarea_style(&self) -> TextStyle
Complete TextAreaStyle
Source§fn text_style(&self) -> TextStyle
fn text_style(&self) -> TextStyle
Complete TextInputStyle
Source§fn label_style(&self) -> Style
fn label_style(&self) -> Style
Text-label style.
Source§fn checkbox_style(&self) -> CheckboxStyle
fn checkbox_style(&self) -> CheckboxStyle
Complete CheckboxStyle
Source§fn slider_style(&self) -> SliderStyle
fn slider_style(&self) -> SliderStyle
Slider Style
Complete MenuStyle
Complete ButtonStyle
Source§fn table_style(&self) -> TableStyle
fn table_style(&self) -> TableStyle
Complete TableStyle
Source§fn list_style(&self) -> ListStyle
fn list_style(&self) -> ListStyle
Complete ListStyle
Source§fn scroll_style(&self) -> ScrollStyle
fn scroll_style(&self) -> ScrollStyle
Scroll style
Source§fn popup_scroll_style(&self) -> ScrollStyle
fn popup_scroll_style(&self) -> ScrollStyle
Popup scroll style
Source§fn dialog_scroll_style(&self) -> ScrollStyle
fn dialog_scroll_style(&self) -> ScrollStyle
Dialog scroll style
Source§fn split_style(&self) -> SplitStyle
fn split_style(&self) -> SplitStyle
Split style
Source§fn view_style(&self) -> ViewStyle
fn view_style(&self) -> ViewStyle
View style
Source§fn tabbed_style(&self) -> TabbedStyle
fn tabbed_style(&self) -> TabbedStyle
Tabbed style
Source§fn statusline_style(&self) -> Vec<Style>
fn statusline_style(&self) -> Vec<Style>
Complete StatusLineStyle for a StatusLine with 3 indicator fields.
Source§fn statusline_style_ext(&self) -> StatusLineStyle
fn statusline_style_ext(&self) -> StatusLineStyle
StatusLineStyle for a StatusLine with 3 indicator fields.
Source§fn file_dialog_style(&self) -> FileDialogStyle
fn file_dialog_style(&self) -> FileDialogStyle
FileDialog style.
Source§fn msg_dialog_style(&self) -> MsgDialogStyle
fn msg_dialog_style(&self) -> MsgDialogStyle
Complete MsgDialogStyle.
Source§fn clipper_style(&self) -> ClipperStyle
fn clipper_style(&self) -> ClipperStyle
Clipper style.
Source§fn paragraph_style(&self) -> ParagraphStyle
fn paragraph_style(&self) -> ParagraphStyle
Source§fn choice_style(&self) -> ChoiceStyle
fn choice_style(&self) -> ChoiceStyle
Source§fn radio_style(&self) -> RadioStyle
fn radio_style(&self) -> RadioStyle
Source§fn form_style(&self) -> FormStyle
fn form_style(&self) -> FormStyle
Source§fn textview_style(&self) -> TextStyle
fn textview_style(&self) -> TextStyle
impl Eq for DarkTheme
impl StructuralPartialEq for DarkTheme
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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