pub struct Theme {
pub accent: RgbColor,
pub background: RgbColor,
pub text_highlight_primary: RgbColor,
pub text_highlight_secondary: RgbColor,
pub text_primary: RgbColor,
pub text_secondary: RgbColor,
}Fields§
§accent: RgbColor§background: RgbColor§text_highlight_primary: RgbColor§text_highlight_secondary: RgbColor§text_primary: RgbColor§text_secondary: RgbColorImplementations§
Source§impl Theme
impl Theme
pub fn catppuccin_latte() -> Self
pub fn catppuccin_frappe() -> Self
pub fn catppuccin_macchiato() -> Self
pub fn catppuccin_mocha() -> Self
pub fn load(config_dir: &Path, theme_name: &str) -> Result<Self, LeadrError>
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