pub struct Theme {
pub id: String,
pub name: SharedString,
pub appearance: Appearance,
pub styles: ThemeStyles,
}
Fields§
§id: String
§name: SharedString
§appearance: Appearance
§styles: ThemeStyles
Implementations§
source§impl Theme
impl Theme
sourcepub fn system(&self) -> &SystemColors
pub fn system(&self) -> &SystemColors
Returns the SystemColors
for the theme.
sourcepub fn players(&self) -> &PlayerColors
pub fn players(&self) -> &PlayerColors
Returns the PlayerColors
for the theme.
sourcepub fn colors(&self) -> &ThemeColors
pub fn colors(&self) -> &ThemeColors
Returns the ThemeColors
for the theme.
sourcepub fn syntax(&self) -> &Arc<SyntaxTheme>
pub fn syntax(&self) -> &Arc<SyntaxTheme>
Returns the SyntaxTheme
for the theme.
sourcepub fn status(&self) -> &StatusColors
pub fn status(&self) -> &StatusColors
Returns the StatusColors
for the theme.
sourcepub fn syntax_color(&self, name: &str) -> Hsla
pub fn syntax_color(&self, name: &str) -> Hsla
Returns the color for the syntax node with the given name.
sourcepub fn diagnostic_style(&self) -> DiagnosticStyle
pub fn diagnostic_style(&self) -> DiagnosticStyle
Returns the DiagnosticStyle
for the theme.
Trait Implementations§
Auto Trait Implementations§
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