Fixed setting themes automatically
This commit is contained in:
parent
e2baf7b39e
commit
1ac6729b00
@ -2,18 +2,6 @@
|
||||
|
||||
void themeStartup(ThemePreset preset) {
|
||||
switch (preset) {
|
||||
case THEME_PRESET_DARK:
|
||||
themeCurrent = (theme_t) {
|
||||
textColor: MakeColor(255, 255, 255, 255),
|
||||
frontWaveColor: MakeColor(96, 204, 204, 255),
|
||||
middleWaveColor: MakeColor(66, 154, 159, 255),
|
||||
backWaveColor: MakeColor(73, 103, 169, 255),
|
||||
backgroundColor: MakeColor(45, 55, 66, 255),
|
||||
highlightColor: MakeColor(129, 137, 236, 255),
|
||||
enableWaveBlending: 0
|
||||
};
|
||||
break;
|
||||
|
||||
case THEME_PRESET_LIGHT:
|
||||
themeCurrent = (theme_t) {
|
||||
textColor: MakeColor(0, 0, 0, 255),
|
||||
@ -25,5 +13,17 @@ void themeStartup(ThemePreset preset) {
|
||||
enableWaveBlending: 0
|
||||
};
|
||||
break;
|
||||
|
||||
case THEME_PRESET_DARK:
|
||||
themeCurrent = (theme_t) {
|
||||
textColor: MakeColor(255, 255, 255, 255),
|
||||
frontWaveColor: MakeColor(96, 204, 204, 255),
|
||||
middleWaveColor: MakeColor(66, 154, 159, 255),
|
||||
backWaveColor: MakeColor(73, 103, 169, 255),
|
||||
backgroundColor: MakeColor(45, 55, 66, 255),
|
||||
highlightColor: MakeColor(129, 137, 236, 255),
|
||||
enableWaveBlending: 0
|
||||
};
|
||||
break;
|
||||
}
|
||||
}
|
@ -15,8 +15,8 @@ typedef struct
|
||||
|
||||
typedef enum
|
||||
{
|
||||
THEME_PRESET_DARK,
|
||||
THEME_PRESET_LIGHT,
|
||||
THEME_PRESET_DARK,
|
||||
} ThemePreset;
|
||||
|
||||
void themeStartup(ThemePreset preset);
|
||||
|
@ -14,6 +14,7 @@ int main(int argc, char **argv)
|
||||
appletSetScreenShotPermission(1);
|
||||
|
||||
ColorSetId theme;
|
||||
setsysInitialize();
|
||||
setsysGetColorSetId(&theme);
|
||||
themeStartup((ThemePreset)theme);
|
||||
menuStartup();
|
||||
|
Loading…
Reference in New Issue
Block a user