diff options
author | Arno <arno@disconnect.de> | 2018-11-23 14:17:09 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-11-23 14:17:09 +0100 |
commit | 7fd099fb737d625befa6f04dcfad1f6c74705e14 (patch) | |
tree | 2864b6177561e142f325d03c9f9b6785cb113748 /fswidget.cpp | |
parent | 8c932c2d21e35fe5b446f80643f3b0ecf19b177d (diff) | |
download | SheMov-7fd099fb737d625befa6f04dcfad1f6c74705e14.tar.gz SheMov-7fd099fb737d625befa6f04dcfad1f6c74705e14.tar.bz2 SheMov-7fd099fb737d625befa6f04dcfad1f6c74705e14.zip |
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.
Diffstat (limited to 'fswidget.cpp')
-rw-r--r-- | fswidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |