pub struct Theme {Show 15 fields
pub name: ThemePreset,
pub primary_color: String,
pub secondary_color: String,
pub accent_color: String,
pub background_color: String,
pub surface_color: String,
pub text_color: String,
pub text_muted_color: String,
pub border_color: String,
pub success_color: String,
pub warning_color: String,
pub error_color: String,
pub sidebar_width: String,
pub border_radius: String,
pub font_family: String,
}Expand description
Theme configuration
Fields§
§name: ThemePresetTheme name/preset
primary_color: StringPrimary color
secondary_color: StringSecondary color
accent_color: StringAccent color
background_color: StringBackground color
surface_color: StringSurface color (cards, etc.)
text_color: StringText color
text_muted_color: StringMuted text color
border_color: StringBorder color
success_color: StringSuccess color
warning_color: StringWarning color
error_color: StringError color
Sidebar width
border_radius: StringBorder radius
font_family: StringFont family
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Theme
impl<'de> Deserialize<'de> for Theme
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnwindSafe for Theme
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