MetaImGUI 1.0.0
ImGui Application Template for C++20
Loading...
Searching...
No Matches
MetaImGUI::ThemeManager Class Reference

Manages application themes and styling. More...

#include <ThemeManager.h>

Public Types

enum class  Theme { Dark , Light , Classic , Modern }
 

Static Public Member Functions

static void Apply (Theme theme)
 Apply a theme to the current ImGui context.
 
static Theme GetCurrent ()
 Get the currently active theme.
 

Detailed Description

Manages application themes and styling.

ThemeManager provides a centralized way to handle ImGui themes. It includes built-in themes (Dark, Light, Classic) and a custom Modern theme optimized for readability and professional appearance.

Definition at line 30 of file ThemeManager.h.

Member Enumeration Documentation

◆ Theme

enum class MetaImGUI::ThemeManager::Theme
strong
Enumerator
Dark 

ImGui's default dark theme.

Light 

ImGui's default light theme.

Classic 

ImGui's classic theme.

Modern 

Custom light theme with rounded corners and borders.

Definition at line 32 of file ThemeManager.h.

Member Function Documentation

◆ Apply()

void MetaImGUI::ThemeManager::Apply ( Theme  theme)
static

Apply a theme to the current ImGui context.

Parameters
themeThe theme to apply

Definition at line 30 of file ThemeManager.cpp.

References Classic, Dark, Light, and Modern.

Referenced by MetaImGUI::UIRenderer::Initialize(), and MetaImGUI::UIRenderer::RenderMenuBar().

◆ GetCurrent()

static Theme MetaImGUI::ThemeManager::GetCurrent ( )
inlinestatic

Get the currently active theme.

Returns
The current theme

Definition at line 49 of file ThemeManager.h.

Referenced by MetaImGUI::UIRenderer::RenderMenuBar().


The documentation for this class was generated from the following files: