Files
anm2ed/src/ui/theme.h
T
shweet 7afdf709c3 Format like smack-a-brother, and write comments as sentences
Four-space indents, braces on their own lines, and one-statement bodies without braces.
Semicolons in comments became full stops.
Designated initializers may leave fields out without a warning.
2026-11-22 17:30:03 -05:00

27 lines
675 B
C++

#pragma once
#include "localization.h"
#define THEMES \
X(THEME_LIGHT, LABEL_THEME_LIGHT) \
X(THEME_DARK, LABEL_THEME_DARK) \
X(THEME_CLASSIC, LABEL_THEME_CLASSIC)
enum Theme
{
#define X(symbol, string) symbol,
THEMES
#undef X
THEME_COUNT
};
constexpr StringType THEME_STRINGS[] = {
#define X(symbol, string) string,
THEMES
#undef X
};
#undef THEMES
void theme_set(Theme);