Skip to main content

DefaultButtonTheme

Struct DefaultButtonTheme 

Source
pub struct DefaultButtonTheme;
Expand description

Default button theme using prototype colors

Implementations§

Trait Implementations§

Source§

impl ButtonTheme for DefaultButtonTheme

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”
Source§

impl Default for DefaultButtonTheme

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.