pub struct ThemePalette {
pub background: Color,
pub surface: Color,
pub surface_elevated: Color,
pub border: Color,
pub text: Color,
pub text_muted: Color,
pub accent: Color,
pub danger: Color,
pub success: Color,
pub warning: Color,
pub info: Color,
pub focus: Color,
}Expand description
Semantic color tokens for built-in widgets.
§Examples
use ailloli_ui_core::style::Theme;
let palette = Theme::dark().palette();
assert_ne!(palette.text, palette.background);Fields§
§background: ColorBase canvas behind ordinary content.
surface: ColorTranslucent or low-elevation control/panel surface.
surface_elevated: ColorOpaque elevated overlay or panel surface.
border: ColorStandard separator and outline color.
text: ColorPrimary readable text color.
text_muted: ColorSecondary or de-emphasized text color.
accent: ColorPrimary brand/action color.
danger: ColorDestructive action and error color.
success: ColorSuccessful state color.
warning: ColorWarning state color.
info: ColorInformational state color.
focus: ColorKeyboard-focus indicator color.
Trait Implementations§
Source§impl Clone for ThemePalette
impl Clone for ThemePalette
Source§fn clone(&self) -> ThemePalette
fn clone(&self) -> ThemePalette
Returns a copy 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 ThemePalette
impl Debug for ThemePalette
Source§impl PartialEq for ThemePalette
impl PartialEq for ThemePalette
impl Copy for ThemePalette
impl StructuralPartialEq for ThemePalette
Auto Trait Implementations§
impl Freeze for ThemePalette
impl RefUnwindSafe for ThemePalette
impl Send for ThemePalette
impl Sync for ThemePalette
impl Unpin for ThemePalette
impl UnwindSafe for ThemePalette
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