summaryrefslogtreecommitdiffstats
path: root/archivebrowser.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-11-24 04:18:20 +0100
committerArno <arno@disconnect.de>2018-11-24 04:18:20 +0100
commitab787e997c927bf8e2684b2e1ac667a57f225102 (patch)
tree2f1998924f19535bccbaec5d59ae8e753ee29ae3 /archivebrowser.cpp
parent92ada0efad9f0b0a3263e4245cfd1441f4b9f7a9 (diff)
downloadSheMov-ab787e997c927bf8e2684b2e1ac667a57f225102.tar.gz
SheMov-ab787e997c927bf8e2684b2e1ac667a57f225102.tar.bz2
SheMov-ab787e997c927bf8e2684b2e1ac667a57f225102.zip
Dark theme GUI changes
Add icons better suited for dark themes and don't draw an ellipse around the letter when calling Helper::icon and use the theme's text color to better match the desktop theme. Just be a good tenant and respect the user's choices where applicable.
Diffstat (limited to 'archivebrowser.cpp')
-rw-r--r--archivebrowser.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/archivebrowser.cpp b/archivebrowser.cpp
index 3341d7c..1a73be4 100644
--- a/archivebrowser.cpp
+++ b/archivebrowser.cpp
@@ -21,6 +21,7 @@
#include <QProgressDialog>
#include <QHeaderView>
#include <QMenu>
+#include <QApplication>
#include "archivebrowser.h"
#include "archivebrowsermodel.h"
@@ -65,26 +66,26 @@ ArchiveBrowser::ArchiveBrowser(QWidget *parent) : QWidget(parent), mSelectedSize
mTree->addAction(refreshA);
toolBar->addSeparator();
mTree->addAction(Helper::createSeparator(this));
- QAction *playSelectedA = new QAction(QIcon(":/dildo.png"), tr("Play selected..."), this);
+ QAction *playSelectedA = new QAction(QIcon::fromTheme("media-playback-start"), tr("Play selected..."), this);
connect(playSelectedA, &QAction::triggered, this, &ArchiveBrowser::playSelected);
toolBar->addAction(playSelectedA);
mTree->addAction(playSelectedA);
- QAction *moveToUSBA = new QAction(QIcon(":/clean_tampon.png"), tr("Move to USB..."), this);
+ QAction *moveToUSBA = new QAction(QIcon(":/usb-32.png"), tr("Move to USB..."), this);
connect(moveToUSBA, &QAction::triggered, this, &ArchiveBrowser::moveToUSB);
toolBar->addAction(moveToUSBA);
mTree->addAction(moveToUSBA);
- QAction *moveToBurnA = new QAction(QIcon(":/shackles.png"), tr("Move to burn..."), this);
+ QAction *moveToBurnA = new QAction(QIcon(":/fire.png"), tr("Move to burn..."), this);
connect(moveToBurnA, &QAction::triggered, this, &ArchiveBrowser::moveToBurn);
toolBar->addAction(moveToBurnA);
mTree->addAction(moveToBurnA);
toolBar->addSeparator();
mTree->addAction(Helper::createSeparator(this));
- QIcon downArrowIcon = Helper::icon(QColor(255,85,255), Qt::white, QChar(0x2b07), true, true);
+ QIcon downArrowIcon = Helper::icon(Qt::transparent, qApp->palette().color(QPalette::Text), QChar(0x2b07), true, false);
QAction *expandAllA = new QAction(downArrowIcon, tr("Expand all"), this);
connect(expandAllA, &QAction::triggered, archiveTree(), &SmTreeView::expandAll);
toolBar->addAction(expandAllA);
mTree->addAction(expandAllA);
- QIcon upArrowIcon = Helper::icon(QColor(255,85,255), Qt::white, QChar(0x2b06), true, true);
+ QIcon upArrowIcon = Helper::icon(Qt::transparent, qApp->palette().color(QPalette::Text), QChar(0x2b06), true, false);
QAction *collapseAllA = new QAction(upArrowIcon, tr("Collapse all"), this);
connect(collapseAllA, &QAction::triggered, archiveTree(), &SmTreeView::collapseAll);
toolBar->addAction(collapseAllA);
@@ -106,7 +107,7 @@ ArchiveBrowser::ArchiveBrowser(QWidget *parent) : QWidget(parent), mSelectedSize
}
connect(a, &QAction::triggered, [=] { mTree->toggleHeader(a); });
}
- QIcon headerIcon = Helper::icon(QColor(255,85,255), Qt::white, 'H', true, true);
+ QIcon headerIcon = Helper::icon(Qt::transparent, qApp->palette().color(QPalette::Text), 'H', true, false);
QAction *headerA = new QAction(headerIcon, tr("Show headers"), this);
QMenu *headerMenu = new QMenu;
headerMenu->addActions(hDataAG->actions());