aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpplistwindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-09-23 17:35:03 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-09-23 17:35:03 +0800
commit09bc96b9afda262f7d3ff73be0a17a1e1be91649 (patch)
treed9ca6d67156cb7269f7c6c7274d7ef23d3ef7154 /qmidiplayer-desktop/qmpplistwindow.cpp
parent41f9cf6fa2718155c8231d579c8af5f24d947b49 (diff)
downloadQMidiPlayer-09bc96b9afda262f7d3ff73be0a17a1e1be91649.tar.xz
Add a set of icons for dark themes and a option to change the icon theme.
Diffstat (limited to 'qmidiplayer-desktop/qmpplistwindow.cpp')
-rw-r--r--qmidiplayer-desktop/qmpplistwindow.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/qmidiplayer-desktop/qmpplistwindow.cpp b/qmidiplayer-desktop/qmpplistwindow.cpp
index e8fc9d8..00eec59 100644
--- a/qmidiplayer-desktop/qmpplistwindow.cpp
+++ b/qmidiplayer-desktop/qmpplistwindow.cpp
@@ -37,32 +37,38 @@ qmpPlistWindow::qmpPlistWindow(QWidget *parent) :
switch(shuffle)
{
case 1:
- ui->pbShuffle->setIcon(QIcon(":/img/shuffle.png"));
+ ui->pbShuffle->setIcon(QIcon(getThemedIcon(":/img/shuffle.png")));
ui->pbShuffle->setText("Shuffle On");
break;
case 0:
default:
- ui->pbShuffle->setIcon(QIcon(":/img/shuffle-off.png"));
+ ui->pbShuffle->setIcon(QIcon(getThemedIcon(":/img/shuffle-off.png")));
ui->pbShuffle->setText("Shuffle Off");
break;
}
switch(repeat)
{
case 0:
- ui->pbRepeat->setIcon(QIcon(":/img/repeat-non.png"));
+ ui->pbRepeat->setIcon(QIcon(getThemedIcon(":/img/repeat-non.png")));
ui->pbRepeat->setText("Repeat Off");
break;
case 1:
- ui->pbRepeat->setIcon(QIcon(":/img/repeat-one.png"));
+ ui->pbRepeat->setIcon(QIcon(getThemedIcon(":/img/repeat-one.png")));
ui->pbRepeat->setText("Repeat One");
break;
case 2:
- ui->pbRepeat->setIcon(QIcon(":/img/repeat-all.png"));
+ ui->pbRepeat->setIcon(QIcon(getThemedIcon(":/img/repeat-all.png")));
ui->pbRepeat->setText("Repeat All");
break;
}
delete plist;
}
+ ui->pbAdd->setIcon(QIcon(getThemedIcon(":/img/add.png")));
+ ui->pbRemove->setIcon(QIcon(getThemedIcon(":/img/remove.png")));
+ ui->pbClear->setIcon(QIcon(getThemedIcon(":/img/clear.png")));
+ ui->pbAddFolder->setIcon(QIcon(getThemedIcon(":/img/addfolder.png")));
+ ui->pbSave->setIcon(QIcon(getThemedIcon(":/img/save.png")));
+ ui->pbLoad->setIcon(QIcon(getThemedIcon(":/img/load.png")));
}
qmpPlistWindow::~qmpPlistWindow()