Voltray Engine Docs
Loading...
Searching...
No Matches
Editor::UI::ThemeManager Class Reference

Manages all themes and provides theme switching functionality. More...

#include <Theme.h>

Public Member Functions

void Initialize ()
 Initializes the theme manager with default themes.
 
void RegisterTheme (std::unique_ptr< Theme > theme)
 Registers a new theme.
 
bool SetActiveTheme (const std::string &themeName)
 Sets the active theme by name.
 
ThemeGetActiveTheme () const
 Gets the currently active theme.
 
std::vector< std::string > GetThemeNames () const
 Gets all available theme names.
 
ThemeGetTheme (const std::string &themeName) const
 Gets a theme by name.
 
void ApplyActiveTheme () const
 Applies the currently active theme.
 
void DrawThemeSelector ()
 Draws the theme selection UI.
 

Static Public Member Functions

static ThemeManagerGetInstance ()
 Gets the singleton instance of the theme manager.
 

Detailed Description

Manages all themes and provides theme switching functionality.

Member Function Documentation

◆ 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()

ThemeManager & Editor::UI::ThemeManager::GetInstance ( )
static

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
themeNameName 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
themeUnique pointer to the theme to register

◆ SetActiveTheme()

bool Editor::UI::ThemeManager::SetActiveTheme ( const std::string &  themeName)

Sets the active theme by name.

Parameters
themeNameName 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: