MCPcopy Create free account
hub / github.com/YACReader/yacreader / themeModeFromString

Function themeModeFromString

common/themes/appearance_configuration.cpp:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26static 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
37AppearanceConfiguration::AppearanceConfiguration(const QString &settingsFilePath, QObject *parent)
38 : QObject(parent), path(settingsFilePath)

Callers 1

loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected