pub trait DarkModeVariantUtilities {
Show 15 methods
// Required methods
fn dark_mode(self, class: impl Into<String>) -> Self;
fn dark_hover(self, class: impl Into<String>) -> Self;
fn dark_focus(self, class: impl Into<String>) -> Self;
fn dark_active(self, class: impl Into<String>) -> Self;
fn dark_disabled(self, class: impl Into<String>) -> Self;
fn dark_checked(self, class: impl Into<String>) -> Self;
fn dark_group_hover(self, class: impl Into<String>) -> Self;
fn dark_group_focus(self, class: impl Into<String>) -> Self;
fn dark_bg(self, color: impl Into<String>) -> Self;
fn dark_text(self, color: impl Into<String>) -> Self;
fn dark_border(self, color: impl Into<String>) -> Self;
fn dark_hover_bg(self, color: impl Into<String>) -> Self;
fn dark_hover_text(self, color: impl Into<String>) -> Self;
fn dark_focus_bg(self, color: impl Into<String>) -> Self;
fn dark_focus_text(self, color: impl Into<String>) -> Self;
}
Expand description
Trait for adding dark mode variant utilities to a class builder
Required Methods§
Sourcefn dark_hover(self, class: impl Into<String>) -> Self
fn dark_hover(self, class: impl Into<String>) -> Self
Add a dark mode hover variant
Sourcefn dark_focus(self, class: impl Into<String>) -> Self
fn dark_focus(self, class: impl Into<String>) -> Self
Add a dark mode focus variant
Sourcefn dark_active(self, class: impl Into<String>) -> Self
fn dark_active(self, class: impl Into<String>) -> Self
Add a dark mode active variant
Sourcefn dark_disabled(self, class: impl Into<String>) -> Self
fn dark_disabled(self, class: impl Into<String>) -> Self
Add a dark mode disabled variant
Sourcefn dark_checked(self, class: impl Into<String>) -> Self
fn dark_checked(self, class: impl Into<String>) -> Self
Add a dark mode checked variant
Sourcefn dark_group_hover(self, class: impl Into<String>) -> Self
fn dark_group_hover(self, class: impl Into<String>) -> Self
Add a dark mode group hover variant
Sourcefn dark_group_focus(self, class: impl Into<String>) -> Self
fn dark_group_focus(self, class: impl Into<String>) -> Self
Add a dark mode group focus variant
Sourcefn dark_border(self, color: impl Into<String>) -> Self
fn dark_border(self, color: impl Into<String>) -> Self
Add a dark mode border color
Sourcefn dark_hover_bg(self, color: impl Into<String>) -> Self
fn dark_hover_bg(self, color: impl Into<String>) -> Self
Add a dark mode hover background color
Sourcefn dark_hover_text(self, color: impl Into<String>) -> Self
fn dark_hover_text(self, color: impl Into<String>) -> Self
Add a dark mode hover text color
Sourcefn dark_focus_bg(self, color: impl Into<String>) -> Self
fn dark_focus_bg(self, color: impl Into<String>) -> Self
Add a dark mode focus background color
Sourcefn dark_focus_text(self, color: impl Into<String>) -> Self
fn dark_focus_text(self, color: impl Into<String>) -> Self
Add a dark mode focus text color
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.