pub enum Appearance {
System,
Light,
Dark,
}Expand description
Light/dark appearance preference. System follows the OS appearance (the
historical behaviour); Light / Dark force a mode regardless of the OS.
Platform-free so the core crate stays GUI-agnostic — the GUI maps this onto
gpui-component’s ThemeMode.
Variants§
System
Follow the operating system’s light/dark setting.
Light
Always use the light variant of the selected theme.
Dark
Always use the dark variant of the selected theme.
Trait Implementations§
Source§impl Clone for Appearance
impl Clone for Appearance
Source§fn clone(&self) -> Appearance
fn clone(&self) -> Appearance
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 moreimpl Copy for Appearance
Source§impl Debug for Appearance
impl Debug for Appearance
Source§impl Default for Appearance
impl Default for Appearance
Source§fn default() -> Appearance
fn default() -> Appearance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Appearance
impl<'de> Deserialize<'de> for Appearance
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 Appearance
Source§impl PartialEq for Appearance
impl PartialEq for Appearance
Source§fn eq(&self, other: &Appearance) -> bool
fn eq(&self, other: &Appearance) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Appearance
impl Serialize for Appearance
impl StructuralPartialEq for Appearance
Auto Trait Implementations§
impl Freeze for Appearance
impl RefUnwindSafe for Appearance
impl Send for Appearance
impl Sync for Appearance
impl Unpin for Appearance
impl UnsafeUnpin for Appearance
impl UnwindSafe for Appearance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.