From 7fd099fb737d625befa6f04dcfad1f6c74705e14 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 23 Nov 2018 14:17:09 +0100 Subject: Use palette colors where applicable Don't assume we know what color ought to use. Ask the palette where applicable, but keep the modified configuration options. --- fswidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fswidget.cpp') diff --git a/fswidget.cpp b/fswidget.cpp index ddda387..e7e7278 100644 --- a/fswidget.cpp +++ b/fswidget.cpp @@ -311,7 +311,7 @@ void FSWidget::gatherData(const QString &curDir){ QIcon videoIcon = Helper::icon(QColor(255,85,255), Qt::white, 'M', true, true); QIcon imageIcon = Helper::icon(QColor(255,85,255), Qt::white, 'P', true, true); QIcon otherIcon = Helper::icon(QColor(255,85,255), Qt::white, 'O', true, true); - QBrush blackBrush(Qt::black); + QBrush defaultBrush(qApp->palette().brush(QPalette::Text)); QBrush greenBrush(Qt::darkGreen); QBrush blueBrush(Qt::darkBlue); @@ -333,7 +333,7 @@ void FSWidget::gatherData(const QString &curDir){ QDirIterator it(curDir, QDir::Files); mFileView->setUpdatesEnabled(false); while(it.hasNext()){ - QBrush currentBrush = blackBrush; + QBrush currentBrush = defaultBrush; QFileInfo fi = it.next(); ++fileCount; QMimeType mimeType = mimedb.mimeTypeForFile(fi); -- cgit v1.2.3-70-g09d2