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.
27 lines
675 B
C++
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);
|