Change background instead of foreground

It turned out invisible on windows…
master
Salvo 'LtWorf' Tomaselli 2020-09-02 23:54:01 +07:00
parent 182ef900d7
commit 398bf50eb9
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 1 additions and 1 deletions

@ -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)