Struct kas_theme::Colors [−][src]
pub struct Colors<C> { pub background: C, pub frame: C, pub edit_bg: C, pub edit_bg_error: C, pub text: C, pub text_sel: C, pub text_sel_bg: C, pub label_text: C, pub button_text: C, pub nav_focus: C, pub button: C, pub checkbox: C, }
Expand description
Provides standard theme colours
Fields
background: C
Background colour
frame: C
Colour for frames (not always used)
edit_bg: C
Background colour of EditBox
edit_bg_error: C
Background colour of EditBox
(error state)
text: C
Text colour in an EditBox
text_sel: C
Selected tect colour
text_sel_bg: C
Selected text background colour
label_text: C
Text colour in a Label
Text colour on a TextButton
Highlight colour for keyboard navigation
Colour of a TextButton
checkbox: C
Colour of mark within a CheckBox
or RadioBox
Implementations
White background with blue activable items
Adjust a colour depending on state
Get colour of a text area, depending on state
Get colour for navigation highlight region, if any
Get colour for a button, depending on state
Get colour for a checkbox mark, depending on state
Get background highlight colour of a menu entry, if any
Get colour of a scrollbar, depending on state
Get text colour from class
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<C> RefUnwindSafe for Colors<C> where
C: RefUnwindSafe,
impl<C> UnwindSafe for Colors<C> where
C: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> T
Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> T
Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> T
Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more