editor.theme_manager

This module provide theme manage functions.

Typical usage example:

1from editor import theme_manager
2theme_manager.loadTheme('dark')
3theme_manager.setupThemeWatcher()

Module Contents

editor.theme_manager.listThemes()[source]

List all available themes.

Returns:

All available themes.

Return type:

list[str]

editor.theme_manager.activeTheme()[source]

Get current active theme.

Returns:

Active theme name.

Return type:

str

editor.theme_manager.activeThemeFolder()[source]

Get current active theme source folder.

Returns:

Active theme folder path.

Return type:

str

editor.theme_manager.loadTheme(name, reset=False)[source]

Load theme by certain name.

Parameters:
  • name (str) – Theme name to load.

  • reset (bool) – Reset exsiting style state. (Mainly used by theme watcher for hot-reloading usage.)

editor.theme_manager.setupThemeWatcher()[source]

Setup theme watcher on all themes.

editor.theme_manager.disposeThemeWatcher()[source]

Shutdown current theme watcher