From 398bf50eb9301d073232412bca911f13c6ad3331 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Wed, 2 Sep 2020 23:54:01 +0200 Subject: [PATCH] Change background instead of foreground MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It turned out invisible on windows… --- relational_gui/guihandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relational_gui/guihandler.py b/relational_gui/guihandler.py index b590126..d989082 100644 --- a/relational_gui/guihandler.py +++ b/relational_gui/guihandler.py @@ -254,7 +254,7 @@ class relForm(QtWidgets.QMainWindow): elif isinstance(k, (int, float)): item.setForeground(j, QtGui.QPalette().link()) elif not isinstance(k, str): - item.setForeground(j, QtGui.QPalette().brightText()) + item.setBackground(j, QtGui.QBrush(QtCore.Qt.darkGreen, QtCore.Qt.Dense4Pattern)) item.setText(j, str(k)) self.ui.table.addTopLevelItem(item)