pub struct ThemeConfig {
pub preset: Option<String>,
pub active: Option<String>,
pub blocked: Option<String>,
pub idle: Option<String>,
pub ink: Option<String>,
pub muted: Option<String>,
pub faint: Option<String>,
pub accent: Option<String>,
pub band: Option<String>,
}Expand description
Theme selection: an optional preset base palette plus optional per-slot
color overrides. Absent fields fall back to the preset (or default).
Fields§
§preset: Option<String>§active: Option<String>§blocked: Option<String>§idle: Option<String>§ink: Option<String>§muted: Option<String>§faint: Option<String>§accent: Option<String>§band: Option<String>Implementations§
Source§impl ThemeConfig
impl ThemeConfig
Sourcepub fn resolve(&self) -> (Theme, Option<String>)
pub fn resolve(&self) -> (Theme, Option<String>)
Resolve to a concrete palette. Unknown preset name -> default base + a
warning; set color fields override the base slot-by-slot. Any override
that isn’t a valid #rrggbb color is ignored (base kept) and reported
in the warning rather than silently swallowed downstream.
Trait Implementations§
Source§impl Clone for ThemeConfig
impl Clone for ThemeConfig
Source§fn clone(&self) -> ThemeConfig
fn clone(&self) -> ThemeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ThemeConfig
impl Debug for ThemeConfig
Source§impl Default for ThemeConfig
impl Default for ThemeConfig
Source§fn default() -> ThemeConfig
fn default() -> ThemeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThemeConfigwhere
ThemeConfig: Default,
impl<'de> Deserialize<'de> for ThemeConfigwhere
ThemeConfig: Default,
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 ThemeConfig
impl RefUnwindSafe for ThemeConfig
impl Send for ThemeConfig
impl Sync for ThemeConfig
impl Unpin for ThemeConfig
impl UnsafeUnpin for ThemeConfig
impl UnwindSafe for ThemeConfig
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