pub struct ResolvedTheme {Show 19 fields
pub primary: Color,
pub secondary: Color,
pub accent: Color,
pub background: Color,
pub surface: Color,
pub overlay: Color,
pub text: Color,
pub text_muted: Color,
pub text_subtle: Color,
pub success: Color,
pub warning: Color,
pub error: Color,
pub info: Color,
pub border: Color,
pub border_focused: Color,
pub selection_bg: Color,
pub selection_fg: Color,
pub scrollbar_track: Color,
pub scrollbar_thumb: Color,
}Expand description
A theme with all colors resolved to fixed values.
This is the result of calling Theme::resolve() with a specific mode.
Fields§
§primary: ColorPrimary accent color.
secondary: ColorSecondary accent color.
accent: ColorTertiary accent color.
background: ColorMain background color.
surface: ColorSurface color (cards, panels).
overlay: ColorOverlay color (dialogs, dropdowns).
text: ColorPrimary text color.
text_muted: ColorMuted text color.
text_subtle: ColorSubtle text color (hints, placeholders).
success: ColorSuccess color.
warning: ColorWarning color.
error: ColorError color.
info: ColorInfo color.
border: ColorDefault border color.
border_focused: ColorFocused element border.
selection_bg: ColorSelection background.
selection_fg: ColorSelection foreground.
scrollbar_track: ColorScrollbar track color.
scrollbar_thumb: ColorScrollbar thumb color.
Trait Implementations§
Source§impl Clone for ResolvedTheme
impl Clone for ResolvedTheme
Source§fn clone(&self) -> ResolvedTheme
fn clone(&self) -> ResolvedTheme
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 moreSource§impl Debug for ResolvedTheme
impl Debug for ResolvedTheme
Source§impl PartialEq for ResolvedTheme
impl PartialEq for ResolvedTheme
impl Copy for ResolvedTheme
impl Eq for ResolvedTheme
impl StructuralPartialEq for ResolvedTheme
Auto Trait Implementations§
impl Freeze for ResolvedTheme
impl RefUnwindSafe for ResolvedTheme
impl Send for ResolvedTheme
impl Sync for ResolvedTheme
impl Unpin for ResolvedTheme
impl UnsafeUnpin for ResolvedTheme
impl UnwindSafe for ResolvedTheme
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