diff options
author | Arno <arno@disconnect.de> | 2018-11-24 04:18:20 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-11-24 04:18:20 +0100 |
commit | ab787e997c927bf8e2684b2e1ac667a57f225102 (patch) | |
tree | 2f1998924f19535bccbaec5d59ae8e753ee29ae3 /pictureswidget.cpp | |
parent | 92ada0efad9f0b0a3263e4245cfd1441f4b9f7a9 (diff) | |
download | SheMov-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 'pictureswidget.cpp')
-rw-r--r-- | pictureswidget.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pictureswidget.cpp b/pictureswidget.cpp index 5c6f8b0..bc7fcc1 100644 --- a/pictureswidget.cpp +++ b/pictureswidget.cpp @@ -15,6 +15,7 @@ #include <QMenu> #include <QHeaderView> #include <QToolBar> +#include <QApplication> #include "pictureswidget.h" #include "picturelistview.h" @@ -59,7 +60,7 @@ void PicturesWidget::setupWidget(){ QWidget *spacer1 = new QWidget; spacer1->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum); toolBar->addWidget(spacer1); - QAction *slideA = new QAction(QIcon(":/huge_bra.png"), tr("Slide dialog..."), this); + QAction *slideA = new QAction(QIcon(":/huge_bra_light.png"), tr("Slide dialog..."), this); connect(slideA, &QAction::triggered, [=] { int ret = SmGlobals::instance()->pictureViewer()->slideDialog()->exec(); if(ret == QDialog::Accepted){ @@ -76,7 +77,7 @@ void PicturesWidget::setupWidget(){ mPictureListView->addAction(deleteA); toolBar->addSeparator(); mPictureListView->addAction(Helper::createSeparator(mPictureListView)); - QAction *editMappingsA = new QAction(QIcon(":/squirting_nipple.png"), tr("Edit mappings..."), this); + QAction *editMappingsA = new QAction(QIcon(":/squirting_nipple_light.png"), tr("Edit mappings..."), this); connect(editMappingsA, &QAction::triggered, this, &PicturesWidget::editMappings); toolBar->addAction(editMappingsA); mPictureListView->addAction(editMappingsA); @@ -100,7 +101,7 @@ void PicturesWidget::setupWidget(){ } connect(a, &QAction::triggered, [=] { mPictureListView->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()); |