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§
Normal state background color Typical: “transparent” or “#1e222d”
Hover state background color Typical: “#2a2a2a”
Pressed state background color Typical: “#1e3a5f”
Active/toggled state background color Typical: “#1e3a5f”
Disabled state background color Typical: “#3a3a3a”
Normal state text color Typical: “#787b86”
Hover state text color Typical: “#ffffff”
Active state text color Typical: “#ffffff”
Disabled state text color Typical: “#4a4a4a”
Normal state icon color Typical: “#787b86”
Hover state icon color Typical: “#ffffff”
Active state icon color Typical: “#ffffff”
Disabled state icon color Typical: “#4a4a4a”
Normal state border color Typical: “#3a3a3a”
Hover state border color Typical: “#2a2a2a”
Focused state border color Typical: “#1e3a5f”
Primary/accent color for primary actions and active state Typical: “#2962ff”
Danger color for delete/remove actions Typical: “#ef4444”
Success color for confirm/success actions Typical: “#10b981”
Warning color for warning actions Typical: “#f59e0b”