pub struct IdeThemeIntegration { /* private fields */ }Expand description
IDE Theme Integration Manager
Implementations§
Source§impl IdeThemeIntegration
impl IdeThemeIntegration
Sourcepub fn new(config: IdeThemeConfig) -> Self
pub fn new(config: IdeThemeConfig) -> Self
Create a new IDE theme integration
Sourcepub async fn initialize(&mut self) -> IdeResult<()>
pub async fn initialize(&mut self) -> IdeResult<()>
Initialize theme system on IDE startup
Sourcepub fn switch_theme(&mut self, theme_name: &str) -> IdeResult<()>
pub fn switch_theme(&mut self, theme_name: &str) -> IdeResult<()>
Switch to a theme by name
Sourcepub fn theme_manager(&self) -> &IdeThemeManager
pub fn theme_manager(&self) -> &IdeThemeManager
Get the current theme manager
Sourcepub fn theme_manager_mut(&mut self) -> &mut IdeThemeManager
pub fn theme_manager_mut(&mut self) -> &mut IdeThemeManager
Get the current theme manager (mutable)
Sourcepub fn config(&self) -> &IdeThemeConfig
pub fn config(&self) -> &IdeThemeConfig
Get the current theme configuration
Sourcepub fn config_mut(&mut self) -> &mut IdeThemeConfig
pub fn config_mut(&mut self) -> &mut IdeThemeConfig
Get the current theme configuration (mutable)
Sourcepub fn available_themes(&self) -> Vec<&'static str>
pub fn available_themes(&self) -> Vec<&'static str>
Get all available themes
Sourcepub fn current_theme_name(&self) -> String
pub fn current_theme_name(&self) -> String
Get the current theme name
Sourcepub fn list_all_themes(&self) -> IdeResult<Vec<String>>
pub fn list_all_themes(&self) -> IdeResult<Vec<String>>
List all available themes (built-in and custom)
Sourcepub fn list_builtin_themes(&self) -> Vec<String>
pub fn list_builtin_themes(&self) -> Vec<String>
List all built-in themes
Sourcepub fn list_custom_themes(&self) -> IdeResult<Vec<String>>
pub fn list_custom_themes(&self) -> IdeResult<Vec<String>>
List all custom themes
Auto Trait Implementations§
impl Freeze for IdeThemeIntegration
impl RefUnwindSafe for IdeThemeIntegration
impl Send for IdeThemeIntegration
impl Sync for IdeThemeIntegration
impl Unpin for IdeThemeIntegration
impl UnwindSafe for IdeThemeIntegration
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more