From 4264af63aff45a03e48b2ca6f8868747a24039bc Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Mon, 10 Jun 2024 16:07:51 +0200 Subject: [PATCH] use 'QtGui' to get 'QPalette' --- client/ayon_core/tools/utils/delegates.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/ayon_core/tools/utils/delegates.py b/client/ayon_core/tools/utils/delegates.py index 7a94ee4320..1cc18b5722 100644 --- a/client/ayon_core/tools/utils/delegates.py +++ b/client/ayon_core/tools/utils/delegates.py @@ -220,14 +220,14 @@ class StatusDelegate(QtWidgets.QStyledItemDelegate): ) focus_opt.backgroundColor = option.palette.color( ( - QtWidgets.QPalette.Normal + QtGui.QPalette.Normal if option.state & QtWidgets.QStyle.State_Enabled - else QtWidgets.QPalette.Disabled + else QtGui.QPalette.Disabled ), ( - QtWidgets.QPalette.Highlight + QtGui.QPalette.Highlight if option.state & QtWidgets.QStyle.State_Selected - else QtWidgets.QPalette.Window + else QtGui.QPalette.Window ) ) style.drawPrimitive(