threepanewindows.ThemeManager
- class threepanewindows.ThemeManager(theme=None, custom_scheme=None)[source]
Manages theme application and platform-specific theme detection.
Initialize theme manager with optional theme and custom color scheme.
- Parameters:
custom_scheme (ColorScheme | None)
- __init__(theme=None, custom_scheme=None)[source]
Initialize theme manager with optional theme and custom color scheme.
- Parameters:
custom_scheme (ColorScheme | None)
- Return type:
None
Methods
__init__([theme, custom_scheme])Initialize theme manager with optional theme and custom color scheme.
apply_theme_to_widget(widget[, recursive])Apply current theme to a widget and optionally its children.
apply_theme_to_window(window)Apply current theme to an entire window and all its widgets.
apply_ttk_theme(style)Apply current theme to ttk widgets.
create_themed_scrollbar_auto(parent[, ...])Create a scrollbar with automatic platform-specific type selection.
get_available_theme_types()Get list of available theme types as enums.
get_available_themes()Get list of available theme names.
get_color(color_name)Get a color value from the current theme.
get_current_theme()Get the currently active theme.
get_platform_info()Get platform information for display purposes.
get_style(component[, state])Get styling for a component in a specific state.
get_theme(name)Get a theme by name or type.
get_tk_widget_style(widget_type[, state])Get styling for custom Tkinter widgets.
is_native_theme_available()Check if native themes are available on this platform.
list_themes()Get dictionary of theme names and their display names.
refresh_system_theme()Refresh system and native themes to match current OS settings.
register_theme(theme)Register a new theme.
set_theme(name[, custom_scheme, window])Set the active theme by name or type.
should_use_custom_scrollbars()Determine whether to use custom scrollbars based on platform.
Attributes
current_schemeGet the current color scheme (alias for current theme colors).
current_themeGet the current theme as a ThemeType enum.