mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Note that the inactive highlight palette problem in Qt on windows still exists
Apparently now it depends on what the accent color is. Sigh.
This commit is contained in:
parent
dd32a88166
commit
96211be30e
@ -111,7 +111,6 @@ 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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user