diff options
Diffstat (limited to 'qmidiplayer-desktop/qmpmainwindow.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmpmainwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp index ac1d939..69a0ba9 100644 --- a/qmidiplayer-desktop/qmpmainwindow.cpp +++ b/qmidiplayer-desktop/qmpmainwindow.cpp @@ -7,9 +7,10 @@ #include <QFont> #include <QTextCodec> #include <QDirIterator> -#include <QDesktopWidget> #include <QMessageBox> #include <QCheckBox> +#include "qmpmidioutfluid.hpp" +#include "qmpmidiplay.hpp" #include "qmpmainwindow.hpp" #include "ui_qmpmainwindow.h" #define setButtonHeight(x,h) {x->setMaximumHeight(h*(logicalDpiY()/96.));x->setMinimumHeight(h*(logicalDpiY()/96.));} @@ -778,7 +779,7 @@ bool qmpMainWindow::isDarkTheme() { if (!settings->getOptionEnumInt("Behavior/IconTheme")) { - return ui->centralWidget->palette().color(QPalette::Background).lightness() < 128; + return ui->centralWidget->palette().color(QPalette::Window).lightness() < 128; } else return 2 - settings->getOptionEnumInt("Behavior/IconTheme"); } |