Trait glutin::platform::unix::Theme [−][src]
pub trait Theme: 'static + Send { pub fn element_color(
&self,
element: Element,
window_active: bool
) -> ARGBColor; pub fn button_color(
&self,
button: Button,
state: ButtonState,
foreground: bool,
window_active: bool
) -> ARGBColor; pub fn font(&self) -> Option<(String, f32)> { ... } }
A theme for a Wayland’s client side decorations.
Required methods
pub fn element_color(&self, element: Element, window_active: bool) -> ARGBColor
[src]
Title bar color.
pub fn button_color(
&self,
button: Button,
state: ButtonState,
foreground: bool,
window_active: bool
) -> ARGBColor
[src]
&self,
button: Button,
state: ButtonState,
foreground: bool,
window_active: bool
) -> ARGBColor
Color for a given button part.
Provided methods
pub 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.