DarkModeVariantUtilities

Trait DarkModeVariantUtilities 

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

Source

fn dark_mode(self, class: impl Into<String>) -> Self

Add a dark mode variant

Source

fn dark_hover(self, class: impl Into<String>) -> Self

Add a dark mode hover variant

Source

fn dark_focus(self, class: impl Into<String>) -> Self

Add a dark mode focus variant

Source

fn dark_active(self, class: impl Into<String>) -> Self

Add a dark mode active variant

Source

fn dark_disabled(self, class: impl Into<String>) -> Self

Add a dark mode disabled variant

Source

fn dark_checked(self, class: impl Into<String>) -> Self

Add a dark mode checked variant

Source

fn dark_group_hover(self, class: impl Into<String>) -> Self

Add a dark mode group hover variant

Source

fn dark_group_focus(self, class: impl Into<String>) -> Self

Add a dark mode group focus variant

Source

fn dark_bg(self, color: impl Into<String>) -> Self

Add a dark mode background color

Source

fn dark_text(self, color: impl Into<String>) -> Self

Add a dark mode text color

Source

fn dark_border(self, color: impl Into<String>) -> Self

Add a dark mode border color

Source

fn dark_hover_bg(self, color: impl Into<String>) -> Self

Add a dark mode hover background color

Source

fn dark_hover_text(self, color: impl Into<String>) -> Self

Add a dark mode hover text color

Source

fn dark_focus_bg(self, color: impl Into<String>) -> Self

Add a dark mode focus background color

Source

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.

Implementors§