pub struct ThemeConfig {
pub light: Option<ThemeStyle>,
pub dark: Option<ThemeStyle>,
pub default_appearance: Option<AppearancePreference>,
}Fields§
§light: Option<ThemeStyle>§dark: Option<ThemeStyle>§default_appearance: Option<AppearancePreference>The product’s appearance until the user picks one. A saved choice always
wins, and an lxapp that pins a scheme in its manifest keeps it. Absent
means auto: follow the system.
Implementations§
Source§impl ThemeConfig
impl ThemeConfig
pub fn normalized(self) -> Option<Self>
pub fn style(&self, dark: bool) -> Option<&ThemeStyle>
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 ThemeConfig
impl<'de> Deserialize<'de> for ThemeConfig
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
impl Eq for ThemeConfig
Source§impl PartialEq for ThemeConfig
impl PartialEq for ThemeConfig
Source§impl Serialize for ThemeConfig
impl Serialize for ThemeConfig
impl StructuralPartialEq for ThemeConfig
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