Trait winit::platform::unix::Theme[][src]

pub trait Theme: Send + 'static {
    fn element_color(&self, element: Element, window_active: bool) -> ARGBColor;
fn button_color(
        &self,
        button: Button,
        state: ButtonState,
        foreground: bool,
        window_active: bool
    ) -> ARGBColor; fn font(&self) -> Option<(String, f32)> { ... } }

A theme for a Wayland’s client side decorations.

Required methods

fn element_color(&self, element: Element, window_active: bool) -> ARGBColor[src]

Title bar color.

fn button_color(
    &self,
    button: Button,
    state: ButtonState,
    foreground: bool,
    window_active: bool
) -> ARGBColor
[src]

Color for a given button part.

Loading content...

Provided methods

fn font(&self) -> Option<(String, f32)>[src]

Font name and the size for the title bar.

By default the font is sans-serif at the size of 17.

Returning None means that title won’t be drawn.

Loading content...

Implementors

Loading content...