diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-09-23 17:35:03 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-09-23 17:35:03 +0800 |
commit | 09bc96b9afda262f7d3ff73be0a17a1e1be91649 (patch) | |
tree | d9ca6d67156cb7269f7c6c7274d7ef23d3ef7154 /qmidiplayer-desktop/qmpmainwindow.hpp | |
parent | 41f9cf6fa2718155c8231d579c8af5f24d947b49 (diff) | |
download | QMidiPlayer-09bc96b9afda262f7d3ff73be0a17a1e1be91649.tar.xz |
Add a set of icons for dark themes and a option to change the icon theme.
Diffstat (limited to 'qmidiplayer-desktop/qmpmainwindow.hpp')
-rw-r--r-- | qmidiplayer-desktop/qmpmainwindow.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qmidiplayer-desktop/qmpmainwindow.hpp b/qmidiplayer-desktop/qmpmainwindow.hpp index 8408409..71161c2 100644 --- a/qmidiplayer-desktop/qmpmainwindow.hpp +++ b/qmidiplayer-desktop/qmpmainwindow.hpp @@ -24,6 +24,8 @@ #include "qmpsettingswindow.hpp" #include "qmphelpwindow.hpp" +#define getThemedIcon(x) (qmpMainWindow::getInstance()->isDarkTheme()?QString(x).insert(QString(x).lastIndexOf('.'),"_i"):QString(x)) + namespace Ui { class qmpMainWindow; } @@ -70,6 +72,7 @@ class qmpMainWindow:public QMainWindow int pharseArgs(); int registerVisualizationIntf(qmpVisualizationIntf* intf); void unregisterVisualizationIntf(int handle); + bool isDarkTheme(); private slots: void on_pbPlayPause_clicked(); @@ -94,7 +97,7 @@ class qmpMainWindow:public QMainWindow void on_pbVisualization_clicked(); - public slots: + public slots: void dialogClosed(); void selectionChanged(); |