Struct kas_theme::Colors [−][src]
pub struct Colors<C> {Show fields
pub background: C,
pub frame: C,
pub bg: C,
pub bg_disabled: C,
pub 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 button_disabled: C,
pub button_highlighted: C,
pub button_depressed: C,
pub checkbox: C,
}Expand description
Provides standard theme colours
Fields
background: CBackground colour
frame: CColour for frames (not always used)
bg: CBackground colour of EditBox
bg_disabled: CBackground colour of EditBox (disabled state)
bg_error: CBackground colour of EditBox (error state)
text: CText colour in an EditBox
text_sel: CSelected tect colour
text_sel_bg: CSelected text background colour
label_text: CText colour in a Label
Text colour on a TextButton
Highlight colour for keyboard navigation
Colour of a TextButton
Colour of a TextButton (disabled state)
Colour of a TextButton when hovered by the mouse
Colour of a TextButton when depressed
checkbox: CColour of mark within a CheckBox or RadioBox
Implementations
White background with blue activable items
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) -> TCast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> TCast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> TCast 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