RatWidgetColor

Trait RatWidgetColor 

Source
pub trait RatWidgetColor {
Show 34 associated constants and 0 method const LABEL_FG: &'static str = "label.fg"; const INPUT_BG: &'static str = "input.bg"; const INPUT_FOCUS_BG: &'static str = "input-focus.bg"; const INPUT_SELECT_BG: &'static str = "input-select.bg"; const FOCUS_BG: &'static str = "focus.bg"; const SELECT_BG: &'static str = "select.bg"; const DISABLED_BG: &'static str = "disabled.bg"; const INVALID_BG: &'static str = "invalid.bg"; const TITLE_FG: &'static str = "title.fg"; const TITLE_BG: &'static str = "title.bg"; const HEADER_FG: &'static str = "header.fg"; const HEADER_BG: &'static str = "header.bg"; const FOOTER_FG: &'static str = "footer.fg"; const FOOTER_BG: &'static str = "footer.bg"; const HOVER_BG: &'static str = "hover.bg"; const BUTTON_BASE_BG: &'static str = "button-base.bg"; const KEY_BINDING_BG: &'static str = "key-binding.bg"; const MENU_BASE_BG: &'static str = "menu-base.bg"; const STATUS_BASE_BG: &'static str = "status-base.bg"; const SHADOW_BG: &'static str = "shadow.bg"; const WEEK_HEADER_FG: &'static str = "week-header.fg"; const MONTH_HEADER_FG: &'static str = "month-header.fg"; const CONTAINER_BASE_BG: &'static str = "container-base.bg"; const CONTAINER_BORDER_FG: &'static str = "container-border.fg"; const CONTAINER_ARROW_FG: &'static str = "container-arrow.fg"; const DOCUMENT_BASE_BG: &'static str = "document-base.bg"; const DOCUMENT_BORDER_FG: &'static str = "document-border.fg"; const DOCUMENT_ARROW_FG: &'static str = "document-arrow.fg"; const POPUP_BASE_BG: &'static str = "popup-base.bg"; const POPUP_BORDER_FG: &'static str = "popup-border.fg"; const POPUP_ARROW_FG: &'static str = "popup-arrow.fg"; const DIALOG_BASE_BG: &'static str = "dialog-base.bg"; const DIALOG_BORDER_FG: &'static str = "dialog-border.fg"; const DIALOG_ARROW_FG: &'static str = "dialog-arrow.fg";
}
Expand description

Extension trait for Color that defines standard names used by rat-theme to define color-aliases.

Use as


let c: Color = theme.p.color_alias(Color::LABEL_FG);

Provided Associated Constants§

Source

const LABEL_FG: &'static str = "label.fg"

Source

const INPUT_BG: &'static str = "input.bg"

Source

const INPUT_FOCUS_BG: &'static str = "input-focus.bg"

Source

const INPUT_SELECT_BG: &'static str = "input-select.bg"

Source

const FOCUS_BG: &'static str = "focus.bg"

Source

const SELECT_BG: &'static str = "select.bg"

Source

const DISABLED_BG: &'static str = "disabled.bg"

Source

const INVALID_BG: &'static str = "invalid.bg"

Source

const TITLE_FG: &'static str = "title.fg"

Source

const TITLE_BG: &'static str = "title.bg"

Source

const HEADER_FG: &'static str = "header.fg"

Source

const HEADER_BG: &'static str = "header.bg"

Source

const FOOTER_FG: &'static str = "footer.fg"

Source

const FOOTER_BG: &'static str = "footer.bg"

Source

const HOVER_BG: &'static str = "hover.bg"

Source

const BUTTON_BASE_BG: &'static str = "button-base.bg"

Source

const KEY_BINDING_BG: &'static str = "key-binding.bg"

Source

const MENU_BASE_BG: &'static str = "menu-base.bg"

Source

const STATUS_BASE_BG: &'static str = "status-base.bg"

Source

const SHADOW_BG: &'static str = "shadow.bg"

Source

const WEEK_HEADER_FG: &'static str = "week-header.fg"

Source

const MONTH_HEADER_FG: &'static str = "month-header.fg"

Source

const CONTAINER_BASE_BG: &'static str = "container-base.bg"

Source

const CONTAINER_BORDER_FG: &'static str = "container-border.fg"

Source

const CONTAINER_ARROW_FG: &'static str = "container-arrow.fg"

Source

const DOCUMENT_BASE_BG: &'static str = "document-base.bg"

Source

const DOCUMENT_BORDER_FG: &'static str = "document-border.fg"

Source

const DOCUMENT_ARROW_FG: &'static str = "document-arrow.fg"

Source

const POPUP_BASE_BG: &'static str = "popup-base.bg"

Source

const POPUP_BORDER_FG: &'static str = "popup-border.fg"

Source

const POPUP_ARROW_FG: &'static str = "popup-arrow.fg"

Source

const DIALOG_BASE_BG: &'static str = "dialog-base.bg"

Source

const DIALOG_BORDER_FG: &'static str = "dialog-border.fg"

Source

const DIALOG_ARROW_FG: &'static str = "dialog-arrow.fg"

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RatWidgetColor for Color

Implementors§