pub struct ThemeManager { /* private fields */ }Expand description
Theme manager with runtime switching.
Implementations§
Source§impl ThemeManager
impl ThemeManager
Sourcepub fn set_theme(&mut self, preset: ThemePreset)
pub fn set_theme(&mut self, preset: ThemePreset)
Switch to a named theme preset.
Sourcepub fn colors(&self) -> &ThemeColors
pub fn colors(&self) -> &ThemeColors
Get current theme colors.
Sourcepub fn current_preset(&self) -> ThemePreset
pub fn current_preset(&self) -> ThemePreset
Get current theme preset.
Sourcepub fn set_colors(&mut self, colors: ThemeColors)
pub fn set_colors(&mut self, colors: ThemeColors)
Set custom colors directly.
Sourcepub fn set_icon_theme(&mut self, theme: IconTheme)
pub fn set_icon_theme(&mut self, theme: IconTheme)
Set icon theme.
Sourcepub fn icon_theme(&self) -> IconTheme
pub fn icon_theme(&self) -> IconTheme
Get icon theme.
Sourcepub fn set_animate_transitions(&mut self, animate: bool)
pub fn set_animate_transitions(&mut self, animate: bool)
Set whether to animate theme transitions.
Sourcepub fn animate_transitions(&self) -> bool
pub fn animate_transitions(&self) -> bool
Check if theme transitions should be animated.
Sourcepub fn map_style_property(&self, property: StyleProperty) -> u32
pub fn map_style_property(&self, property: StyleProperty) -> u32
Map a GTK/Qt-style property to the current theme (stub). Returns the u32 color or size value for the property.
Sourcepub fn gtk_theme_name(&self) -> &'static str
pub fn gtk_theme_name(&self) -> &'static str
Get the GTK theme name string for this preset (stub for GTK integration).
Sourcepub fn qt_style_hint(&self) -> u32
pub fn qt_style_hint(&self) -> u32
Get the Qt theme variant for this preset (stub for Qt integration).