From e13de28a24c2a223fe4903421f802a4ba7fcef08 Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Wed, 5 Feb 2025 11:24:07 +0100 Subject: [PATCH] draw placeholder with disabled color --- client/ayon_core/tools/utils/multiselection_combobox.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/ayon_core/tools/utils/multiselection_combobox.py b/client/ayon_core/tools/utils/multiselection_combobox.py index b90838267b..e8bc688234 100644 --- a/client/ayon_core/tools/utils/multiselection_combobox.py +++ b/client/ayon_core/tools/utils/multiselection_combobox.py @@ -208,7 +208,8 @@ class MultiSelectionComboBox(QtWidgets.QComboBox): draw_text = False if draw_text: option.currentText = combotext - option.palette.setCurrentColorGroup(QtGui.QPalette.Disabled) + # Draw text as disabled -> to mimic placeholder color + option.state &= ~QtWidgets.QStyle.State_Enabled painter.drawControl(QtWidgets.QStyle.CE_ComboBoxLabel, option) return