diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-09 12:49:14 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-09 12:49:14 +0300 |
commit | d197e02ae35d8439c80106db6ce1c561499e5629 (patch) | |
tree | 68253f66c07cc041c43280812f0df21c8b25ac29 /src/prefs.c | |
parent | 38240ae4887aafccf679295e418faf4727159269 (diff) |
Prefs: System light/dark theme preference
Remember which UI color themes are selected for system light and dark modes separately. Previously it would always switch to a hardcoded color theme when toggling the "Use system theme" option.
Diffstat (limited to 'src/prefs.c')
-rw-r--r-- | src/prefs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/prefs.c b/src/prefs.c index 4d079402..f7179ad7 100644 --- a/src/prefs.c +++ b/src/prefs.c | |||
@@ -32,6 +32,7 @@ void init_Prefs(iPrefs *d) { | |||
32 | d->langFrom = 3; /* fr */ | 32 | d->langFrom = 3; /* fr */ |
33 | d->langTo = 2; /* en */ | 33 | d->langTo = 2; /* en */ |
34 | d->useSystemTheme = iTrue; | 34 | d->useSystemTheme = iTrue; |
35 | d->systemPreferredColorTheme[0] = d->systemPreferredColorTheme[1] = -1; | ||
35 | d->theme = dark_ColorTheme; | 36 | d->theme = dark_ColorTheme; |
36 | d->accent = cyan_ColorAccent; | 37 | d->accent = cyan_ColorAccent; |
37 | d->customFrame = iFalse; /* needs some more work to be default */ | 38 | d->customFrame = iFalse; /* needs some more work to be default */ |