pub struct Theme {
pub palette: HashMap<String, Color>,
pub ui: UiStyles,
pub captures: CaptureMap,
}Expand description
Fully resolved theme.
Fields§
§palette: HashMap<String, Color>Resolved palette kept for introspection.
ui: UiStylesUI surface styles.
captures: CaptureMapTree-sitter capture styles with fallback-chain support.
Implementations§
Source§impl Theme
impl Theme
Sourcepub fn from_toml_str(s: &str) -> Result<Self, ThemeError>
pub fn from_toml_str(s: &str) -> Result<Self, ThemeError>
Parse a theme from a TOML string.
Sourcepub fn from_path(p: &Path) -> Result<Self, ThemeError>
pub fn from_path(p: &Path) -> Result<Self, ThemeError>
Parse a theme from a file path.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin 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