Manages all themes and provides theme switching functionality.
More...
#include <Theme.h>
Manages all themes and provides theme switching functionality.
◆ ApplyActiveTheme()
void Editor::UI::ThemeManager::ApplyActiveTheme |
( |
| ) |
const |
Applies the currently active theme.
◆ DrawThemeSelector()
void Editor::UI::ThemeManager::DrawThemeSelector |
( |
| ) |
|
Draws the theme selection UI.
◆ GetActiveTheme()
Theme * Editor::UI::ThemeManager::GetActiveTheme |
( |
| ) |
const |
Gets the currently active theme.
- Returns
- Pointer to the active theme, or nullptr if none set
◆ GetInstance()
Gets the singleton instance of the theme manager.
- Returns
- Reference to the theme manager instance
◆ GetTheme()
Theme * Editor::UI::ThemeManager::GetTheme |
( |
const std::string & |
themeName | ) |
const |
Gets a theme by name.
- Parameters
-
themeName | Name of the theme to get |
- Returns
- Pointer to the theme, or nullptr if not found
◆ GetThemeNames()
std::vector< std::string > Editor::UI::ThemeManager::GetThemeNames |
( |
| ) |
const |
Gets all available theme names.
- Returns
- Vector of theme names
◆ Initialize()
void Editor::UI::ThemeManager::Initialize |
( |
| ) |
|
Initializes the theme manager with default themes.
◆ RegisterTheme()
void Editor::UI::ThemeManager::RegisterTheme |
( |
std::unique_ptr< Theme > |
theme | ) |
|
Registers a new theme.
- Parameters
-
theme | Unique pointer to the theme to register |
◆ SetActiveTheme()
bool Editor::UI::ThemeManager::SetActiveTheme |
( |
const std::string & |
themeName | ) |
|
Sets the active theme by name.
- Parameters
-
themeName | Name of the theme to activate |
- Returns
- True if theme was found and applied, false otherwise
The documentation for this class was generated from the following files: