| 24 | } |
| 25 | |
| 26 | static ThemeMode themeModeFromString(const QString &s) |
| 27 | { |
| 28 | if (s == "Light") |
| 29 | return ThemeMode::Light; |
| 30 | if (s == "Dark") |
| 31 | return ThemeMode::Dark; |
| 32 | if (s == "ForcedTheme") |
| 33 | return ThemeMode::ForcedTheme; |
| 34 | return ThemeMode::FollowSystem; |
| 35 | } |
| 36 | |
| 37 | AppearanceConfiguration::AppearanceConfiguration(const QString &settingsFilePath, QObject *parent) |
| 38 | : QObject(parent), path(settingsFilePath) |