Fixed QPalette parent in PySide2
This commit is contained in:
parent
d8acdbe444
commit
81a1d9e7b2
@ -188,7 +188,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
if fileIsUntrusted:
|
if fileIsUntrusted:
|
||||||
self.item(item).setForeground(QtGui.QBrush(QtGui.QColor(constants.STYLE_UNTRUSTEDITEM_COLOR)))
|
self.item(item).setForeground(QtGui.QBrush(QtGui.QColor(constants.STYLE_UNTRUSTEDITEM_COLOR)))
|
||||||
elif fileIsAvailable:
|
elif fileIsAvailable:
|
||||||
self.item(item).setForeground(QtGui.QBrush(QtGui.QColor(QtWidgets.QPalette.ColorRole(QtWidgets.QPalette.Text))))
|
self.item(item).setForeground(QtGui.QBrush(QtGui.QColor(QtGui.QPalette.ColorRole(QtGui.QPalette.Text))))
|
||||||
else:
|
else:
|
||||||
self.item(item).setForeground(QtGui.QBrush(QtGui.QColor(constants.STYLE_DIFFERENTITEM_COLOR)))
|
self.item(item).setForeground(QtGui.QBrush(QtGui.QColor(constants.STYLE_DIFFERENTITEM_COLOR)))
|
||||||
self.selfWindow._syncplayClient.fileSwitch.setFilenameWatchlist(self.selfWindow.newWatchlist)
|
self.selfWindow._syncplayClient.fileSwitch.setFilenameWatchlist(self.selfWindow.newWatchlist)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user