Skip to main content

ButtonTone

Type Alias ButtonTone 

Source
pub type ButtonTone = SemanticTone;
Expand description

Semantic palette shortcut for Material buttons and icon buttons. Backwards-compatible alias for crate::SemanticTone. Per-instance ButtonColors and ButtonBorder overrides still take precedence.

Aliased Type§

pub enum ButtonTone {
    Default,
    Danger,
    Success,
    Warning,
    Info,
}

Variants§

§

Default

Component default theme palette (no semantic override).

§

Danger

Destructive or error semantic palette (Error / ErrorContainer).

§

Success

Positive or confirmation semantic palette (Success / SuccessContainer).

§

Warning

Cautionary semantic palette (Warning / WarningContainer).

§

Info

Informational semantic palette (Info / InfoContainer).