Skip to main content

ButtonTheme

Trait ButtonTheme 

Source
pub trait ButtonTheme {
Show 20 methods // Required methods fn button_bg_normal(&self) -> &str; fn button_bg_hover(&self) -> &str; fn button_bg_pressed(&self) -> &str; fn button_bg_active(&self) -> &str; fn button_bg_disabled(&self) -> &str; fn button_text_normal(&self) -> &str; fn button_text_hover(&self) -> &str; fn button_text_active(&self) -> &str; fn button_text_disabled(&self) -> &str; fn button_icon_normal(&self) -> &str; fn button_icon_hover(&self) -> &str; fn button_icon_active(&self) -> &str; fn button_icon_disabled(&self) -> &str; fn button_border_normal(&self) -> &str; fn button_border_hover(&self) -> &str; fn button_border_focused(&self) -> &str; fn button_accent(&self) -> &str; fn button_danger(&self) -> &str; fn button_success(&self) -> &str; fn button_warning(&self) -> &str;
}
Expand description

Theme trait for button colors - Contract between system themes and factory rendering

Required Methods§

Source

fn button_bg_normal(&self) -> &str

Normal state background color Typical: “transparent” or “#1e222d”

Source

fn button_bg_hover(&self) -> &str

Hover state background color Typical: “#2a2a2a”

Source

fn button_bg_pressed(&self) -> &str

Pressed state background color Typical: “#1e3a5f”

Source

fn button_bg_active(&self) -> &str

Active/toggled state background color Typical: “#1e3a5f”

Source

fn button_bg_disabled(&self) -> &str

Disabled state background color Typical: “#3a3a3a”

Source

fn button_text_normal(&self) -> &str

Normal state text color Typical: “#787b86”

Source

fn button_text_hover(&self) -> &str

Hover state text color Typical: “#ffffff”

Source

fn button_text_active(&self) -> &str

Active state text color Typical: “#ffffff”

Source

fn button_text_disabled(&self) -> &str

Disabled state text color Typical: “#4a4a4a”

Source

fn button_icon_normal(&self) -> &str

Normal state icon color Typical: “#787b86”

Source

fn button_icon_hover(&self) -> &str

Hover state icon color Typical: “#ffffff”

Source

fn button_icon_active(&self) -> &str

Active state icon color Typical: “#ffffff”

Source

fn button_icon_disabled(&self) -> &str

Disabled state icon color Typical: “#4a4a4a”

Source

fn button_border_normal(&self) -> &str

Normal state border color Typical: “#3a3a3a”

Source

fn button_border_hover(&self) -> &str

Hover state border color Typical: “#2a2a2a”

Source

fn button_border_focused(&self) -> &str

Focused state border color Typical: “#1e3a5f”

Source

fn button_accent(&self) -> &str

Primary/accent color for primary actions and active state Typical: “#2962ff”

Source

fn button_danger(&self) -> &str

Danger color for delete/remove actions Typical: “#ef4444”

Source

fn button_success(&self) -> &str

Success color for confirm/success actions Typical: “#10b981”

Source

fn button_warning(&self) -> &str

Warning color for warning actions Typical: “#f59e0b”

Implementors§