WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
ThemeManager Namespace Reference

Enumerations

enum  Theme { Dark = 0 , Light , UE5 , Count }
 

Functions

static void updateTitleBarColor (Theme theme, GLFWwindow *window)
 
void apply (Theme theme, GLFWwindow *window)
 
Theme currentTheme () noexcept
 Currently active theme index.
 
int & currentThemeRef () noexcept
 Writable reference so ImGui::Combo can bind directly.
 
const char * themeName (int index) noexcept
 Human-readable name for a theme.
 
const char *const * themeNames () noexcept
 Pointer to the contiguous name array (for ImGui::Combo items).
 
constexpr int themeCount () noexcept
 Number of available themes.
 

Variables

static int s_currentTheme = static_cast<int>(UE5)
 
static const char * s_themeNames []
 

Enumeration Type Documentation

◆ Theme

Enumerator
Dark 
Light 
UE5 
Count 

Definition at line 8 of file ThemeManager.h.

Function Documentation

◆ apply()

void ThemeManager::apply ( Theme  theme,
GLFWwindow *  window 
)

Apply the given theme to the current ImGui context and update the native title-bar colour on Windows. Pass the GLFW window so the DWM caption colour can be set (may be nullptr if unavailable).

Definition at line 61 of file ThemeManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentTheme()

Theme ThemeManager::currentTheme ( )
noexcept

Currently active theme index.

Definition at line 232 of file ThemeManager.cpp.

Here is the caller graph for this function:

◆ currentThemeRef()

int & ThemeManager::currentThemeRef ( )
noexcept

Writable reference so ImGui::Combo can bind directly.

Definition at line 237 of file ThemeManager.cpp.

Here is the caller graph for this function:

◆ themeCount()

constexpr int ThemeManager::themeCount ( )
constexprnoexcept

Number of available themes.

Definition at line 34 of file ThemeManager.h.

Here is the caller graph for this function:

◆ themeName()

const char * ThemeManager::themeName ( int  index)
noexcept

Human-readable name for a theme.

Definition at line 242 of file ThemeManager.cpp.

◆ themeNames()

const char *const * ThemeManager::themeNames ( )
noexcept

Pointer to the contiguous name array (for ImGui::Combo items).

Definition at line 249 of file ThemeManager.cpp.

Here is the caller graph for this function:

◆ updateTitleBarColor()

static void ThemeManager::updateTitleBarColor ( Theme  theme,
GLFWwindow *  window 
)
static

Definition at line 29 of file ThemeManager.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ s_currentTheme

int ThemeManager::s_currentTheme = static_cast<int>(UE5)
static

Definition at line 20 of file ThemeManager.cpp.

◆ s_themeNames

const char* ThemeManager::s_themeNames[]
static
Initial value:
= {
"Dark",
"Light",
"Unreal Engine 5"
}

Definition at line 22 of file ThemeManager.cpp.