This commit is contained in:
Kovid Goyal 2023-07-04 19:33:27 +05:30
parent 437ca3bec2
commit 0ad4d24f90
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -111,6 +111,7 @@ def fix_palette_colors(p):
if iswindows:
# On Windows the highlighted colors for inactive widgets are the
# same as non highlighted colors. This is a regression from Qt 4.
# Possibly fixed in Qt 6.5 need to test
# https://bugreports.qt-project.org/browse/QTBUG-41060
for role in (QPalette.ColorRole.Highlight, QPalette.ColorRole.HighlightedText, QPalette.ColorRole.Base, QPalette.ColorRole.AlternateBase):
p.setColor(QPalette.ColorGroup.Inactive, role, p.color(QPalette.ColorGroup.Active, role))