summaryrefslogtreecommitdiffstats
path: root/smglobals.h
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 /smglobals.h
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 'smglobals.h')
-rw-r--r--smglobals.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/smglobals.h b/smglobals.h
index 83e63be..89fe597 100644
--- a/smglobals.h
+++ b/smglobals.h
@@ -10,6 +10,7 @@
#include <QObject>
#include <QHash>
+#include <QMap>
#include <QSize>
#include <QStringList>
@@ -43,7 +44,7 @@ class SmGlobals : public QObject {
ArchiveController *archiveController() { return mArchiveController; }
QSize cursorSize();
QIcon iconFor(const QString &type);
- const QHash<QString, QString> & icons() const { return mIcons; }
+ const QMap<QString, QString> & icons() const { return mIcons; }
QHash<int, QString> filetypeMap() const { return mFiletypeMap; }
void setGlobalAction(QAction *a) { mGlobalActions = a; }
QAction *globalAction() { return mGlobalActions; }
@@ -62,7 +63,7 @@ class SmGlobals : public QObject {
VideoViewer *mVideoViewer;
SeriesTreeWidget *mSeriesTreeWidget;
QSize mCursorSize;
- QHash<QString, QString> mIcons;
+ QMap<QString, QString> mIcons;
ArchiveController *mArchiveController;
QHash<int, QString> mFiletypeMap;
QList<QWidget*> mWidgets;