FuncDoodle
Loading...
Searching...
No Matches
FuncDoodle::Themes Namespace Reference

Classes

struct  CustomTheme
 Represents a users' custom theme for FuncDoodle. More...

Functions

void ClearThemes ()
 Clears the loaded theme registry and frees owned metadata.
void ThemeEditor ()
 Renders the ImGui style editor when enabled.
CustomThemeLoadThemeFromFile (const char *path)
void LoadThemes (std::filesystem::path path)
void SaveCurrentTheme ()
 Renders and processes the save-theme UI.

Variables

constexpr const char * s_DefaultTheme
 UUID string of the built-in default theme.
std::map< UUID, CustomThemeg_Themes
bool g_ThemeEditorOpen = false
bool g_SaveThemeOpen = false
CustomTheme g_LastLoadedTheme

Function Documentation

◆ ClearThemes()

void FuncDoodle::Themes::ClearThemes ( )
inline

Clears the loaded theme registry and frees owned metadata.

◆ LoadThemeFromFile()

CustomTheme * FuncDoodle::Themes::LoadThemeFromFile ( const char * path)
inline

◆ LoadThemes()

void FuncDoodle::Themes::LoadThemes ( std::filesystem::path path)
inline

◆ SaveCurrentTheme()

void FuncDoodle::Themes::SaveCurrentTheme ( )
inline

Renders and processes the save-theme UI.

◆ ThemeEditor()

void FuncDoodle::Themes::ThemeEditor ( )
inline

Renders the ImGui style editor when enabled.

Variable Documentation

◆ g_LastLoadedTheme

CustomTheme FuncDoodle::Themes::g_LastLoadedTheme
inline

Cached copy of the most recently loaded theme.

◆ g_SaveThemeOpen

bool FuncDoodle::Themes::g_SaveThemeOpen = false
inline

Whether the save-theme popup is open.

◆ g_ThemeEditorOpen

bool FuncDoodle::Themes::g_ThemeEditorOpen = false
inline

Whether the live theme editor window is open.

◆ g_Themes

std::map<UUID, CustomTheme> FuncDoodle::Themes::g_Themes
inline

Registry of all loaded themes keyed by UUID.

◆ s_DefaultTheme

const char* FuncDoodle::Themes::s_DefaultTheme
constexpr
Initial value:
=
"d0c1a009-d09c-4fe6-84f8-eddcb2da38f9"

UUID string of the built-in default theme.