Fixed setting themes automatically
This commit is contained in:
parent
e2baf7b39e
commit
1ac6729b00
@ -2,18 +2,6 @@
|
|||||||
|
|
||||||
void themeStartup(ThemePreset preset) {
|
void themeStartup(ThemePreset preset) {
|
||||||
switch (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:
|
case THEME_PRESET_LIGHT:
|
||||||
themeCurrent = (theme_t) {
|
themeCurrent = (theme_t) {
|
||||||
textColor: MakeColor(0, 0, 0, 255),
|
textColor: MakeColor(0, 0, 0, 255),
|
||||||
@ -25,5 +13,17 @@ void themeStartup(ThemePreset preset) {
|
|||||||
enableWaveBlending: 0
|
enableWaveBlending: 0
|
||||||
};
|
};
|
||||||
break;
|
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
|
typedef enum
|
||||||
{
|
{
|
||||||
THEME_PRESET_DARK,
|
|
||||||
THEME_PRESET_LIGHT,
|
THEME_PRESET_LIGHT,
|
||||||
|
THEME_PRESET_DARK,
|
||||||
} ThemePreset;
|
} ThemePreset;
|
||||||
|
|
||||||
void themeStartup(ThemePreset preset);
|
void themeStartup(ThemePreset preset);
|
||||||
|
@ -14,6 +14,7 @@ int main(int argc, char **argv)
|
|||||||
appletSetScreenShotPermission(1);
|
appletSetScreenShotPermission(1);
|
||||||
|
|
||||||
ColorSetId theme;
|
ColorSetId theme;
|
||||||
|
setsysInitialize();
|
||||||
setsysGetColorSetId(&theme);
|
setsysGetColorSetId(&theme);
|
||||||
themeStartup((ThemePreset)theme);
|
themeStartup((ThemePreset)theme);
|
||||||
menuStartup();
|
menuStartup();
|
||||||
|
Loading…
Reference in New Issue
Block a user