pub struct ThemeColors {Show 22 fields
pub bg: Color,
pub bg_secondary: Color,
pub bg_highlight: Color,
pub fg: Color,
pub fg_dim: Color,
pub fg_muted: Color,
pub primary: Color,
pub secondary: Color,
pub accent: Color,
pub success: Color,
pub warning: Color,
pub error: Color,
pub info: Color,
pub border: Color,
pub border_focus: Color,
pub selection: Color,
pub logo_primary: Color,
pub logo_secondary: Color,
pub priority_low: Color,
pub priority_medium: Color,
pub priority_high: Color,
pub priority_urgent: Color,
}Expand description
Extended color palette for UI elements.
This provides pre-built styles and derived colors for Tickit’s UI, based on a theme’s base palette.
Fields§
§bg: Color§bg_secondary: Color§bg_highlight: Color§fg: Color§fg_dim: Color§fg_muted: Color§primary: Color§secondary: Color§accent: Color§success: Color§warning: Color§error: Color§info: Color§border: Color§border_focus: Color§selection: Color§logo_primary: Color§logo_secondary: Color§priority_low: Color§priority_medium: Color§priority_high: Color§priority_urgent: ColorImplementations§
Source§impl ThemeColors
impl ThemeColors
Sourcepub fn from_palette(p: ThemePalette) -> Self
pub fn from_palette(p: ThemePalette) -> Self
Create ThemeColors from a ThemePalette
Sourcepub fn text_muted(&self) -> Style
pub fn text_muted(&self) -> Style
Muted text style
Sourcepub fn text_primary(&self) -> Style
pub fn text_primary(&self) -> Style
Primary accent style
Sourcepub fn text_secondary(&self) -> Style
pub fn text_secondary(&self) -> Style
Secondary accent style
Sourcepub fn text_success(&self) -> Style
pub fn text_success(&self) -> Style
Success style
Sourcepub fn text_warning(&self) -> Style
pub fn text_warning(&self) -> Style
Warning style
Sourcepub fn text_error(&self) -> Style
pub fn text_error(&self) -> Style
Error style
Sourcepub fn block_focus(&self) -> Style
pub fn block_focus(&self) -> Style
Focused block border style
Sourcepub fn tab_active(&self) -> Style
pub fn tab_active(&self) -> Style
Active tab style
Sourcepub fn logo_style_primary(&self) -> Style
pub fn logo_style_primary(&self) -> Style
Logo primary style
Sourcepub fn logo_style_secondary(&self) -> Style
pub fn logo_style_secondary(&self) -> Style
Logo secondary style
Sourcepub fn priority_style(&self, priority: Priority) -> Style
pub fn priority_style(&self, priority: Priority) -> Style
Style for a priority level
Trait Implementations§
Source§impl Clone for ThemeColors
impl Clone for ThemeColors
Source§fn clone(&self) -> ThemeColors
fn clone(&self) -> ThemeColors
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ThemeColors
impl RefUnwindSafe for ThemeColors
impl Send for ThemeColors
impl Sync for ThemeColors
impl Unpin for ThemeColors
impl UnsafeUnpin for ThemeColors
impl UnwindSafe for ThemeColors
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more