Type Definition kas_theme::ColorsLinear

source ·
pub type ColorsLinear = Colors<Rgba>;
Expand description

Colors parameterised for graphics usage

Implementations§

Adjust a colour depending on state

Extract from Background

Get colour of a text area, depending on state

Get colour for navigation highlight region, if any

Get accent colour, adjusted for state

Get soft accent colour, adjusted for state

Get colour for a check box mark, depending on state

source

pub fn menu_entry(&self, state: InputState) -> Option<Rgba>

Get background highlight colour of a menu entry, if any

Get appropriate text colour over the given background

Trait Implementations§

Returns the “default value” for a type. Read more
Converts to this type from the input type.