From ab787e997c927bf8e2684b2e1ac667a57f225102 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 24 Nov 2018 04:18:20 +0100 Subject: 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. --- smglobals.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'smglobals.h') diff --git a/smglobals.h b/smglobals.h index 83e63be..89fe597 100644 --- a/smglobals.h +++ b/smglobals.h @@ -10,6 +10,7 @@ #include #include +#include #include #include @@ -43,7 +44,7 @@ class SmGlobals : public QObject { ArchiveController *archiveController() { return mArchiveController; } QSize cursorSize(); QIcon iconFor(const QString &type); - const QHash & icons() const { return mIcons; } + const QMap & icons() const { return mIcons; } QHash 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 mIcons; + QMap mIcons; ArchiveController *mArchiveController; QHash mFiletypeMap; QList mWidgets; -- cgit v1.2.3-70-g09d2