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

Function themeModeToString

common/themes/appearance_configuration.cpp:11–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9static constexpr auto kFixedId = "FixedThemeId";
10
11static QString themeModeToString(ThemeMode mode)
12{
13 switch (mode) {
14 case ThemeMode::FollowSystem:
15 return "FollowSystem";
16 case ThemeMode::Light:
17 return "Light";
18 case ThemeMode::Dark:
19 return "Dark";
20 case ThemeMode::ForcedTheme:
21 return "ForcedTheme";
22 }
23 return "FollowSystem";
24}
25
26static ThemeMode themeModeFromString(const QString &s)
27{

Callers 1

setModeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected