Type Definition kas_theme::ColorsLinear
source · Expand description
Colors
parameterised for graphics usage
Implementations§
source§impl ColorsLinear
impl ColorsLinear
sourcepub fn adjust_for_state(col: Rgba, state: InputState) -> Rgba
pub fn adjust_for_state(col: Rgba, state: InputState) -> Rgba
Adjust a colour depending on state
sourcepub fn from_bg(
&self,
bg: Background,
state: InputState,
force_accent: bool
) -> Rgba
pub fn from_bg(
&self,
bg: Background,
state: InputState,
force_accent: bool
) -> Rgba
Extract from Background
sourcepub fn from_edit_bg(&self, bg: Background, state: InputState) -> Rgba
pub fn from_edit_bg(&self, bg: Background, state: InputState) -> Rgba
Get colour of a text area, depending on state
Get colour for navigation highlight region, if any
sourcepub fn accent_state(&self, state: InputState) -> Rgba
pub fn accent_state(&self, state: InputState) -> Rgba
Get accent colour, adjusted for state
sourcepub fn accent_soft_state(&self, state: InputState) -> Rgba
pub fn accent_soft_state(&self, state: InputState) -> Rgba
Get soft accent colour, adjusted for state
sourcepub fn check_mark_state(&self, state: InputState) -> Rgba
pub fn check_mark_state(&self, state: InputState) -> Rgba
Get colour for a check box mark, depending on state
Get background highlight colour of a menu entry, if any