[−][src]Struct kas_theme::ThemeColours
Provides standard theme colours
Fields
background: Colourframe: Colourtext_area: Colourtext: Colourlabel_text: Colourcheckbox: ColourMethods
impl ThemeColours[src]
pub fn open(scheme: &str) -> Option<Self>[src]
Open the given scheme, if found
TODO: the intention is that this method can read and cache data from external resources. For now, we simply hard-code a few instances.
pub fn new() -> Self[src]
Default theme: grey with blue activable items
pub fn light() -> Self[src]
Light scheme
pub fn dark() -> Self[src]
Dark scheme
pub fn nav_region(&self, highlights: HighlightState) -> Option<Colour>[src]
Get colour for navigation highlight region, if any
pub fn button_state(&self, highlights: HighlightState) -> Colour[src]
Get colour for a button, depending on state
pub fn check_mark_state(
&self,
highlights: HighlightState,
checked: bool
) -> Option<Colour>[src]
&self,
highlights: HighlightState,
checked: bool
) -> Option<Colour>
Get colour for a checkbox mark, depending on state
pub fn scrollbar_state(&self, highlights: HighlightState) -> Colour[src]
Get colour of a scrollbar, depending on state
Trait Implementations
impl Clone for ThemeColours[src]
fn clone(&self) -> ThemeColours[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ThemeColours[src]
Auto Trait Implementations
impl RefUnwindSafe for ThemeColours
impl Send for ThemeColours
impl Sync for ThemeColours
impl Unpin for ThemeColours
impl UnwindSafe for ThemeColours
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,