Skip to main content

StyleName

Trait StyleName 

Source
pub trait StyleName {
Show 31 associated constants and 0 method const LABEL_FG: &'static str = "label-fg"; const INPUT: &'static str = "input"; const INPUT_FOCUS: &'static str = "text-focus"; const INPUT_SELECT: &'static str = "text-select"; const FOCUS: &'static str = "focus"; const SELECT: &'static str = "select"; const DISABLED: &'static str = "disabled"; const INVALID: &'static str = "invalid"; const TITLE: &'static str = "title"; const HEADER: &'static str = "header"; const FOOTER: &'static str = "footer"; const HOVER: &'static str = "hover"; const SHADOWS: &'static str = "shadows"; const WEEK_HEADER_FG: &'static str = "week-header-fg"; const MONTH_HEADER_FG: &'static str = "month-header-fg"; const KEY_BINDING: &'static str = "key-binding"; const BUTTON_BASE: &'static str = "button-base"; const MENU_BASE: &'static str = "menu-base"; const STATUS_BASE: &'static str = "status-base"; const CONTAINER_BASE: &'static str = "container-base"; const CONTAINER_BORDER_FG: &'static str = "container-border-fg"; const CONTAINER_ARROW_FG: &'static str = "container-arrows-fg"; const DOCUMENT_BASE: &'static str = "document-base"; const DOCUMENT_BORDER_FG: &'static str = "document-border-fg"; const DOCUMENT_ARROW_FG: &'static str = "document-arrows-fg"; const POPUP_BASE: &'static str = "popup-base"; const POPUP_BORDER_FG: &'static str = "popup-border-fg"; const POPUP_ARROW_FG: &'static str = "popup-arrow-fg"; const DIALOG_BASE: &'static str = "dialog-base"; const DIALOG_BORDER_FG: &'static str = "dialog-border-fg"; const DIALOG_ARROW_FG: &'static str = "dialog-arrow-fg";
}
Expand description

Extension trait for Style that defines some standard names used by rat-theme/rat-widget

Use as


let s: Style = theme.style(Style::INPUT);

Provided Associated Constants§

Source

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

Source

const INPUT: &'static str = "input"

Source

const INPUT_FOCUS: &'static str = "text-focus"

Source

const INPUT_SELECT: &'static str = "text-select"

Source

const FOCUS: &'static str = "focus"

Source

const SELECT: &'static str = "select"

Source

const DISABLED: &'static str = "disabled"

Source

const INVALID: &'static str = "invalid"

Source

const TITLE: &'static str = "title"

Source

const HEADER: &'static str = "header"

Source

const FOOTER: &'static str = "footer"

Source

const HOVER: &'static str = "hover"

Source

const SHADOWS: &'static str = "shadows"

Source

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

Source

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

Source

const KEY_BINDING: &'static str = "key-binding"

Source

const BUTTON_BASE: &'static str = "button-base"

Source

const MENU_BASE: &'static str = "menu-base"

Source

const STATUS_BASE: &'static str = "status-base"

Source

const CONTAINER_BASE: &'static str = "container-base"

Source

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

Source

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

Source

const DOCUMENT_BASE: &'static str = "document-base"

Source

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

Source

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

Source

const POPUP_BASE: &'static str = "popup-base"

Source

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

Source

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

Source

const DIALOG_BASE: &'static str = "dialog-base"

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".

Implementations on Foreign Types§

Source§

impl StyleName for Style

Implementors§