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

pub trait Theme: 'static + Send {
    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

Title bar color.

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

Color for a given button part.

Loading content...

Provided methods

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

Font name and the size for the title bar.

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

Returning None means that title won't be drawn.

Loading content...

Implementors

Loading content...