Add dark mode configuration setting in UI tab

- Allows to choose "Auto", "Always On" or "Always Off".
- If Auto is chosen, value is retrieved from OS
  - On Windows, the application needs a restart to apply the settings
  - On Windows, "Always On" is not available, the OS is responsible for
    selecting the dark palette
This commit is contained in:
flodavid
2024-02-12 04:01:25 +01:00
parent e88e93e055
commit f1e66ee0c7
9 changed files with 119 additions and 64 deletions
+1
View File
@@ -67,6 +67,7 @@ SWITCHABLE(u8, true);
// Used in UISettings
// TODO see if we can move this to uisettings.cpp
SWITCHABLE(ConfirmStop, true);
SWITCHABLE(DarkModeState, true);
#undef SETTING
#undef SWITCHABLE