pub struct DefaultButtonTheme;Expand description
Default button theme using prototype colors
Implementations§
Trait Implementations§
Source§impl ButtonTheme for DefaultButtonTheme
impl ButtonTheme for DefaultButtonTheme
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”
Auto Trait Implementations§
impl Freeze for DefaultButtonTheme
impl RefUnwindSafe for DefaultButtonTheme
impl Send for DefaultButtonTheme
impl Sync for DefaultButtonTheme
impl Unpin for DefaultButtonTheme
impl UnsafeUnpin for DefaultButtonTheme
impl UnwindSafe for DefaultButtonTheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more