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. --- configurationdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configurationdialog.cpp') diff --git a/configurationdialog.cpp b/configurationdialog.cpp index da394e8..f5fc7d1 100644 --- a/configurationdialog.cpp +++ b/configurationdialog.cpp @@ -157,8 +157,8 @@ ConfigurationDialog::ConfigurationDialog(QWidget *parent, Qt::WindowFlags f) : S // icons mIconModel = new QStandardItemModel; - const QHash icons = SmGlobals::instance()->icons(); - for(QHash::const_iterator it = icons.constBegin(); it != icons.constEnd(); ++it){ + const auto icons = SmGlobals::instance()->icons(); + for(auto it = icons.constBegin(); it != icons.constEnd(); ++it){ QStandardItem *item = new QStandardItem(QIcon(it.value()), it.key()); mIconModel->appendRow(item); } -- cgit v1.2.3-70-g09d2