aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-21 23:13:34 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-21 23:13:34 +0200
commite327de2ca9b4b60a94e3df6c5a70568233ccd678 (patch)
tree4690ffc1e25e6cc4589a01e4ee4c61fd055c3ef8 /src/mainwindow.cpp
parent8efb66c23eedd839e3e5ebe8a19668198574e686 (diff)
downloadkristall-e327de2ca9b4b60a94e3df6c5a70568233ccd678.tar.gz
Adds 'OS Default' theme.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 2e96aa9..81a209a 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -335,6 +335,11 @@ void MainWindow::on_actionAbout_Qt_triggered()
void MainWindow::reloadTheme()
{
+ if(global_options.theme == Theme::os_default)
+ {
+ application->setStyleSheet("");
+ QIcon::setThemeName("light");
+ }
if(global_options.theme == Theme::light)
{
QFile file(":/light.qss");