dbs_annotator.utils.theme_manager.ThemeManager

class dbs_annotator.utils.theme_manager.ThemeManager[source]

Bases: object

Manages application theme switching.

This singleton class handles loading and applying themes, and persisting theme preferences.

Methods

apply_theme(theme[, app])

Apply a theme to the application.

get_current_theme()

Get the currently active theme.

get_theme_color(color_name)

Get a named color from the current theme's QSS file comments.

get_theme_icon(theme)

Get the icon character for a theme toggle button.

get_theme_stylesheet_path(theme)

Get the filesystem path to a theme's stylesheet.

is_dark_mode()

Check if dark mode is currently active.

load_stylesheet(theme)

Load a theme's stylesheet content.

toggle_theme([app])

Toggle between dark and light themes.