From 0ad4d24f904acf411cc6653e6e786847feaa0519 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 4 Jul 2023 19:33:27 +0530 Subject: [PATCH] ... --- src/calibre/gui2/palette.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/palette.py b/src/calibre/gui2/palette.py index 9334013e5b..a0e477ff16 100644 --- a/src/calibre/gui2/palette.py +++ b/src/calibre/gui2/palette.py @@ -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))