| 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(); |