pub trait Theme: Send + 'static {
// Required methods
fn primary_color(&self, window_active: bool) -> [u8; 4];
fn secondary_color(&self, window_active: bool) -> [u8; 4];
fn close_button_color(&self, status: ButtonState) -> [u8; 4];
fn maximize_button_color(&self, status: ButtonState) -> [u8; 4];
fn minimize_button_color(&self, status: ButtonState) -> [u8; 4];
// Provided methods
fn close_button_icon_color(&self, status: ButtonState) -> [u8; 4] { ... }
fn maximize_button_icon_color(&self, status: ButtonState) -> [u8; 4] { ... }
fn minimize_button_icon_color(&self, status: ButtonState) -> [u8; 4] { ... }
}Required Methods§
Sourcefn primary_color(&self, window_active: bool) -> [u8; 4]
fn primary_color(&self, window_active: bool) -> [u8; 4]
Primary color of the scheme.
Sourcefn secondary_color(&self, window_active: bool) -> [u8; 4]
fn secondary_color(&self, window_active: bool) -> [u8; 4]
Secondary color of the scheme.
Color for the close button.
Background color for the maximize button.
Background color for the minimize button.
Provided Methods§
Icon color for the close button, defaults to the secondary color.
Icon color for the maximize button, defaults to the secondary color.
Icon color for the minimize button, defaults to the secondary color.