MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / themeManagerHasBuiltIns

Method themeManagerHasBuiltIns

tests/test_theme.cpp:92–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 }
91
92 void themeManagerHasBuiltIns() {
93 auto& tm = ThemeManager::instance();
94 auto all = tm.themes();
95 QVERIFY(all.size() >= 3);
96 QCOMPARE(all[0].name, QString("Reclass Dark"));
97 // VS2022 Dark and Warm are also loaded (order depends on filename sort)
98 bool hasVs = false, hasWarm = false;
99 for (const auto& t : all) {
100 if (t.name == "VS2022 Dark") hasVs = true;
101 if (t.name == "Warm") hasWarm = true;
102 }
103 QVERIFY(hasVs);
104 QVERIFY(hasWarm);
105 }
106
107 void themeManagerSwitch() {
108 auto& tm = ThemeManager::instance();

Callers

nothing calls this directly

Calls 2

themesMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected