pub struct ThemeConfig {
pub name: String,
pub author: Option<String>,
pub url: Option<String>,
pub color_scheme: Option<ColorScheme>,
pub colors: HashMap<String, String>,
pub metrics: HashMap<String, f32>,
pub corners: HashMap<String, Corners>,
pub numbers: HashMap<String, f32>,
pub durations_ms: HashMap<String, u32>,
pub easings: HashMap<String, CubicBezier>,
pub text_styles: HashMap<String, TextStyle>,
}Fields§
§name: String§url: Option<String>§color_scheme: Option<ColorScheme>Optional theme metadata hint describing the intended color scheme.
This is app/theme-owned content (ADR 0032). It is used by recipe-layer code that needs a stable “light vs dark” hint without relying on theme naming conventions.
colors: HashMap<String, String>§metrics: HashMap<String, f32>§corners: HashMap<String, Corners>§numbers: HashMap<String, f32>§durations_ms: HashMap<String, u32>§easings: HashMap<String, CubicBezier>§text_styles: HashMap<String, TextStyle>Implementations§
Source§impl ThemeConfig
impl ThemeConfig
pub fn from_slice(bytes: &[u8]) -> Result<Self, Error>
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 · 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§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