pub trait SalsaTheme {
Show 64 methods
// Required methods
fn name(&self) -> &str;
fn palette(&self) -> &Palette;
fn white(&self, n: usize) -> Style;
fn black(&self, n: usize) -> Style;
fn gray(&self, n: usize) -> Style;
fn red(&self, n: usize) -> Style;
fn orange(&self, n: usize) -> Style;
fn yellow(&self, n: usize) -> Style;
fn limegreen(&self, n: usize) -> Style;
fn green(&self, n: usize) -> Style;
fn bluegreen(&self, n: usize) -> Style;
fn cyan(&self, n: usize) -> Style;
fn blue(&self, n: usize) -> Style;
fn deepblue(&self, n: usize) -> Style;
fn purple(&self, n: usize) -> Style;
fn magenta(&self, n: usize) -> Style;
fn redpink(&self, n: usize) -> Style;
fn primary(&self, n: usize) -> Style;
fn secondary(&self, n: usize) -> Style;
fn focus(&self) -> Style;
fn select(&self) -> Style;
fn text_input(&self) -> Style;
fn text_focus(&self) -> Style;
fn text_select(&self) -> Style;
fn scroll_style(&self) -> ScrollStyle;
fn container_base(&self) -> Style;
fn container_border(&self) -> Style;
fn container_arrow(&self) -> Style;
fn popup_base(&self) -> Style;
fn popup_border(&self) -> Style;
fn popup_arrow(&self) -> Style;
fn popup_scroll_style(&self) -> ScrollStyle;
fn dialog_base(&self) -> Style;
fn dialog_border(&self) -> Style;
fn dialog_arrow(&self) -> Style;
fn dialog_scroll_style(&self) -> ScrollStyle;
fn status_base(&self) -> Style;
fn button_base(&self) -> Style;
fn button_armed(&self) -> Style;
fn label_style(&self) -> Style;
fn text_style(&self) -> TextStyle;
fn textarea_style(&self) -> TextStyle;
fn choice_style(&self) -> ChoiceStyle;
fn radio_style(&self) -> RadioStyle;
fn checkbox_style(&self) -> CheckboxStyle;
fn slider_style(&self) -> SliderStyle;
fn month_style(&self) -> CalendarStyle;
fn line_nr_style(&self) -> LineNumberStyle;
fn button_style(&self) -> ButtonStyle;
fn table_style(&self) -> TableStyle;
fn list_style(&self) -> ListStyle;
fn textview_style(&self) -> TextStyle;
fn paragraph_style(&self) -> ParagraphStyle;
fn shadow_style(&self) -> ShadowStyle;
fn menu_style(&self) -> MenuStyle;
fn split_style(&self) -> SplitStyle;
fn view_style(&self) -> ViewStyle;
fn tabbed_style(&self) -> TabbedStyle;
fn statusline_style(&self) -> Vec<Style>;
fn statusline_style_ext(&self) -> StatusLineStyle;
fn file_dialog_style(&self) -> FileDialogStyle;
fn msg_dialog_style(&self) -> MsgDialogStyle;
fn form_style(&self) -> FormStyle;
fn clipper_style(&self) -> ClipperStyle;
}Expand description
Trait for a theme.
Required Methods§
Sourcefn limegreen(&self, n: usize) -> Style
fn limegreen(&self, n: usize) -> Style
Create a style from the given limegreen shade.
n is 0..8
Sourcefn bluegreen(&self, n: usize) -> Style
fn bluegreen(&self, n: usize) -> Style
Create a style from the given bluegreen shade.
n is 0..8
Sourcefn secondary(&self, n: usize) -> Style
fn secondary(&self, n: usize) -> Style
Create a style from the given secondary shade.
n is 0..8
Sourcefn text_input(&self) -> Style
fn text_input(&self) -> Style
Text input base style.
Sourcefn text_focus(&self) -> Style
fn text_focus(&self) -> Style
Text input with focus.
Sourcefn text_select(&self) -> Style
fn text_select(&self) -> Style
Text selection.
Sourcefn scroll_style(&self) -> ScrollStyle
fn scroll_style(&self) -> ScrollStyle
Scroll style
Sourcefn container_base(&self) -> Style
fn container_base(&self) -> Style
Container base.
Sourcefn container_border(&self) -> Style
fn container_border(&self) -> Style
Container border.
Sourcefn container_arrow(&self) -> Style
fn container_arrow(&self) -> Style
Container scrollbar arrows.
Sourcefn popup_base(&self) -> Style
fn popup_base(&self) -> Style
Background for popups.
Sourcefn popup_border(&self) -> Style
fn popup_border(&self) -> Style
Border for popups.
Sourcefn popup_arrow(&self) -> Style
fn popup_arrow(&self) -> Style
Popup scrollbar arrows.
Sourcefn popup_scroll_style(&self) -> ScrollStyle
fn popup_scroll_style(&self) -> ScrollStyle
Popup scroll style
Sourcefn dialog_base(&self) -> Style
fn dialog_base(&self) -> Style
Background for dialogs.
Sourcefn dialog_border(&self) -> Style
fn dialog_border(&self) -> Style
Border for dialogs.
Sourcefn dialog_arrow(&self) -> Style
fn dialog_arrow(&self) -> Style
Dialog scrollbar arrows.
Sourcefn dialog_scroll_style(&self) -> ScrollStyle
fn dialog_scroll_style(&self) -> ScrollStyle
Dialog scroll style
Sourcefn status_base(&self) -> Style
fn status_base(&self) -> Style
Style for the status line.
Base style for buttons.
Armed style for buttons.
Sourcefn label_style(&self) -> Style
fn label_style(&self) -> Style
Field label style.
Sourcefn text_style(&self) -> TextStyle
fn text_style(&self) -> TextStyle
Any text fields as input widgets.
Sourcefn textarea_style(&self) -> TextStyle
fn textarea_style(&self) -> TextStyle
TextArea as input widget.
Sourcefn choice_style(&self) -> ChoiceStyle
fn choice_style(&self) -> ChoiceStyle
Choice.
Sourcefn radio_style(&self) -> RadioStyle
fn radio_style(&self) -> RadioStyle
Radiobutton.
Sourcefn checkbox_style(&self) -> CheckboxStyle
fn checkbox_style(&self) -> CheckboxStyle
Checkbox.
Sourcefn slider_style(&self) -> SliderStyle
fn slider_style(&self) -> SliderStyle
Slider.
Sourcefn month_style(&self) -> CalendarStyle
fn month_style(&self) -> CalendarStyle
Calendar.
Sourcefn line_nr_style(&self) -> LineNumberStyle
fn line_nr_style(&self) -> LineNumberStyle
Line numbers.
Buttons.
Sourcefn table_style(&self) -> TableStyle
fn table_style(&self) -> TableStyle
Table.
Sourcefn list_style(&self) -> ListStyle
fn list_style(&self) -> ListStyle
List.
Sourcefn textview_style(&self) -> TextStyle
fn textview_style(&self) -> TextStyle
Text style for view-only TextAreas.
Sourcefn paragraph_style(&self) -> ParagraphStyle
fn paragraph_style(&self) -> ParagraphStyle
Paragraph.
Sourcefn shadow_style(&self) -> ShadowStyle
fn shadow_style(&self) -> ShadowStyle
Shadow.
Menus.
Sourcefn split_style(&self) -> SplitStyle
fn split_style(&self) -> SplitStyle
Split.
Sourcefn view_style(&self) -> ViewStyle
fn view_style(&self) -> ViewStyle
View.
Sourcefn tabbed_style(&self) -> TabbedStyle
fn tabbed_style(&self) -> TabbedStyle
Tabbed.
Sourcefn statusline_style(&self) -> Vec<Style>
fn statusline_style(&self) -> Vec<Style>
Old school statusline styling.
Sourcefn statusline_style_ext(&self) -> StatusLineStyle
fn statusline_style_ext(&self) -> StatusLineStyle
Style for a StatusLine with 3 indicator fields.
Sourcefn file_dialog_style(&self) -> FileDialogStyle
fn file_dialog_style(&self) -> FileDialogStyle
FileDialog.
Sourcefn msg_dialog_style(&self) -> MsgDialogStyle
fn msg_dialog_style(&self) -> MsgDialogStyle
MsgDialog.
Sourcefn form_style(&self) -> FormStyle
fn form_style(&self) -> FormStyle
Form.
Sourcefn clipper_style(&self) -> ClipperStyle
fn clipper_style(&self) -> ClipperStyle
Clipper.