pub struct AppTheme {
pub primary: Color,
pub success: Color,
pub warning: Color,
pub danger: Color,
pub info: Color,
pub text_primary: Color,
pub text_secondary: Color,
pub text_muted: Color,
pub border_active: Color,
pub border_inactive: Color,
pub bg_selected: Color,
pub bg_header: Color,
}Expand description
Application theme with all UI colors.
Colors are based on the Tailwind CSS palette for consistency.
Fields§
§primary: Color§success: Color§warning: Color§danger: Color§info: Color§text_primary: Color§text_secondary: Color§text_muted: Color§border_active: Color§border_inactive: Color§bg_selected: Color§bg_header: ColorImplementations§
Source§impl AppTheme
impl AppTheme
Sourcepub fn border_active_style(&self) -> Style
pub fn border_active_style(&self) -> Style
Style for active/focused borders.
Sourcepub fn border_inactive_style(&self) -> Style
pub fn border_inactive_style(&self) -> Style
Style for inactive borders.
Sourcepub fn selected_style(&self) -> Style
pub fn selected_style(&self) -> Style
Style for selected items (inverted/highlighted).
Sourcepub fn title_style(&self) -> Style
pub fn title_style(&self) -> Style
Style for titles.
Sourcepub fn header_style(&self) -> Style
pub fn header_style(&self) -> Style
Style for header/app bar.
Trait Implementations§
impl Copy for AppTheme
Auto Trait Implementations§
impl Freeze for AppTheme
impl RefUnwindSafe for AppTheme
impl Send for AppTheme
impl Sync for AppTheme
impl Unpin for AppTheme
impl UnwindSafe for AppTheme
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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