From e2fc809ed971ade86f600e2a25cbb2024bc25787 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Tue, 13 Nov 2018 15:50:27 +0100 Subject: [PATCH] PICARD-1320: Fix text color for modified files The color was supposed to be theme aware, but generating the color failed, which resulted in black text no matter the theme. This made the text barely readable with dark themes. --- picard/ui/itemviews.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/picard/ui/itemviews.py b/picard/ui/itemviews.py index 9f8b29424..2eb1a73c6 100644 --- a/picard/ui/itemviews.py +++ b/picard/ui/itemviews.py @@ -144,7 +144,7 @@ class MainPanel(QtWidgets.QSplitter): } FileItem.file_colors = { File.NORMAL: TreeItem.text_color, - File.CHANGED: config.setting["color_modified"], + File.CHANGED: TreeItem.text_color, File.PENDING: config.setting["color_pending"], File.ERROR: config.setting["color_error"], } @@ -240,7 +240,6 @@ class MainPanel(QtWidgets.QSplitter): class BaseTreeView(QtWidgets.QTreeWidget): options = [ - config.Option("setting", "color_modified", QtGui.QColor(QtGui.QPalette.WindowText)), config.Option("setting", "color_saved", QtGui.QColor(0, 128, 0)), config.Option("setting", "color_error", QtGui.QColor(200, 0, 0)), config.Option("setting", "color_pending", QtGui.QColor(128, 128, 128)),