SalsaTheme

Trait SalsaTheme 

Source
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§

Source

fn name(&self) -> &str

Theme name.

Source

fn palette(&self) -> &Palette

Color palette.

Source

fn white(&self, n: usize) -> Style

Create a style from the given white shade. n is 0..8

Source

fn black(&self, n: usize) -> Style

Create a style from the given black shade. n is 0..8

Source

fn gray(&self, n: usize) -> Style

Create a style from the given gray shade. n is 0..8

Source

fn red(&self, n: usize) -> Style

Create a style from the given red shade. n is 0..8

Source

fn orange(&self, n: usize) -> Style

Create a style from the given orange shade. n is 0..8

Source

fn yellow(&self, n: usize) -> Style

Create a style from the given yellow shade. n is 0..8

Source

fn limegreen(&self, n: usize) -> Style

Create a style from the given limegreen shade. n is 0..8

Source

fn green(&self, n: usize) -> Style

Create a style from the given green shade. n is 0..8

Source

fn bluegreen(&self, n: usize) -> Style

Create a style from the given bluegreen shade. n is 0..8

Source

fn cyan(&self, n: usize) -> Style

Create a style from the given cyan shade. n is 0..8

Source

fn blue(&self, n: usize) -> Style

Create a style from the given blue shade. n is 0..8

Source

fn deepblue(&self, n: usize) -> Style

Create a style from the given deepblue shade. n is 0..8

Source

fn purple(&self, n: usize) -> Style

Create a style from the given purple shade. n is 0..8

Source

fn magenta(&self, n: usize) -> Style

Create a style from the given magenta shade. n is 0..8

Source

fn redpink(&self, n: usize) -> Style

Create a style from the given redpink shade. n is 0..8

Source

fn primary(&self, n: usize) -> Style

Create a style from the given primary shade. n is 0..8

Source

fn secondary(&self, n: usize) -> Style

Create a style from the given secondary shade. n is 0..8

Source

fn focus(&self) -> Style

Focused style.

Source

fn select(&self) -> Style

Selection style.

Source

fn text_input(&self) -> Style

Text input base style.

Source

fn text_focus(&self) -> Style

Text input with focus.

Source

fn text_select(&self) -> Style

Text selection.

Source

fn scroll_style(&self) -> ScrollStyle

Scroll style

Source

fn container_base(&self) -> Style

Container base.

Source

fn container_border(&self) -> Style

Container border.

Source

fn container_arrow(&self) -> Style

Container scrollbar arrows.

Source

fn popup_base(&self) -> Style

Background for popups.

Source

fn popup_border(&self) -> Style

Border for popups.

Source

fn popup_arrow(&self) -> Style

Popup scrollbar arrows.

Source

fn popup_scroll_style(&self) -> ScrollStyle

Popup scroll style

Source

fn dialog_base(&self) -> Style

Background for dialogs.

Source

fn dialog_border(&self) -> Style

Border for dialogs.

Source

fn dialog_arrow(&self) -> Style

Dialog scrollbar arrows.

Source

fn dialog_scroll_style(&self) -> ScrollStyle

Dialog scroll style

Source

fn status_base(&self) -> Style

Style for the status line.

Source

fn button_base(&self) -> Style

Base style for buttons.

Source

fn button_armed(&self) -> Style

Armed style for buttons.

Source

fn label_style(&self) -> Style

Field label style.

Source

fn text_style(&self) -> TextStyle

Any text fields as input widgets.

Source

fn textarea_style(&self) -> TextStyle

TextArea as input widget.

Source

fn choice_style(&self) -> ChoiceStyle

Choice.

Source

fn radio_style(&self) -> RadioStyle

Radiobutton.

Source

fn checkbox_style(&self) -> CheckboxStyle

Checkbox.

Source

fn slider_style(&self) -> SliderStyle

Slider.

Source

fn month_style(&self) -> CalendarStyle

Calendar.

Source

fn line_nr_style(&self) -> LineNumberStyle

Line numbers.

Source

fn button_style(&self) -> ButtonStyle

Buttons.

Source

fn table_style(&self) -> TableStyle

Table.

Source

fn list_style(&self) -> ListStyle

List.

Source

fn textview_style(&self) -> TextStyle

Text style for view-only TextAreas.

Source

fn paragraph_style(&self) -> ParagraphStyle

Paragraph.

Source

fn shadow_style(&self) -> ShadowStyle

Shadow.

Source

fn menu_style(&self) -> MenuStyle

Menus.

Source

fn split_style(&self) -> SplitStyle

Split.

Source

fn view_style(&self) -> ViewStyle

View.

Source

fn tabbed_style(&self) -> TabbedStyle

Tabbed.

Source

fn statusline_style(&self) -> Vec<Style>

Old school statusline styling.

Source

fn statusline_style_ext(&self) -> StatusLineStyle

Style for a StatusLine with 3 indicator fields.

Source

fn file_dialog_style(&self) -> FileDialogStyle

FileDialog.

Source

fn msg_dialog_style(&self) -> MsgDialogStyle

MsgDialog.

Source

fn form_style(&self) -> FormStyle

Form.

Source

fn clipper_style(&self) -> ClipperStyle

Clipper.

Implementors§