Skip to content

Commit 629aa99

Browse files
committed
refactor: Remove test code for theme change
1 parent d25d39b commit 629aa99

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/ViewLayer.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,22 +1290,6 @@ void ViewLayer::initNavigationView() {
12901290
const QString current_theme = sv_Layer.getCurrentThemeName();
12911291
const QJsonObject theme_config = sv_Layer.getThemeConfig(current_theme);
12921292
navigation_widget->loadTheme(theme_config);
1293-
1294-
auto timer = new QTimer(this);
1295-
connect(timer, &QTimer::timeout, this, [=,this]() {
1296-
static bool isDefaultTheme = true;
1297-
if (isDefaultTheme) {
1298-
const QJsonObject theme_config = sv_Layer.getThemeConfig("blue");
1299-
navigation_widget->loadTheme(theme_config);
1300-
isDefaultTheme = false;
1301-
} else {
1302-
const QJsonObject theme_config = sv_Layer.getThemeConfig("default");
1303-
navigation_widget->loadTheme(theme_config);
1304-
isDefaultTheme = true;
1305-
}
1306-
1307-
});
1308-
timer->start(5000);
13091293
}
13101294

13111295
void ViewLayer::onBackToNavigation()

0 commit comments

Comments
 (0)