unified color source

This commit is contained in:
iLLiCiTiT 2021-05-14 17:30:13 +02:00
parent 382febe03f
commit 354ea1d581

View file

@ -1310,7 +1310,7 @@ class BaseItem:
if role == QtCore.Qt.ForegroundRole:
if key == "name" and not self.is_valid:
return QtGui.QColor(255, 0, 0)
return ResourceCache.colors["warning"]
return None
if role in (QtCore.Qt.DisplayRole, QtCore.Qt.EditRole):