|
MetaImGUI 1.0.0
ImGui Application Template for C++20
|
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. | |
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.
|
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.
|
static |
Apply a theme to the current ImGui context.
| theme | The 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().
|
inlinestatic |
Get the currently active theme.
Definition at line 49 of file ThemeManager.h.
Referenced by MetaImGUI::UIRenderer::RenderMenuBar().