From 08485e10ad986c01b998f80c074b53c2c5c28533 Mon Sep 17 00:00:00 2001 From: fekt Date: Sun, 5 Feb 2023 12:03:08 -0500 Subject: [PATCH] Setting DragonX default theme for additional exception --- src/mainwindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 71b0e77..93e5c40 100755 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2351,7 +2351,12 @@ void MainWindow::slot_change_theme(QString& theme_name) saved_theme_name = Settings::getInstance()->get_theme_name(); } catch (const std::exception& e) { qDebug() << QString("Ignoring theme change Exception! : "); - saved_theme_name = "dark"; + + if(isdragonx){ + saved_theme_name = "dragonx"; + }else{ + saved_theme_name = "dark"; + } } QString filename = ":/css/" + saved_theme_name +".css";