From ae6ef2807def4ffef1b553ec0b3567ebe62abcca Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 13 Feb 2024 08:13:21 +0530 Subject: [PATCH] Fix disabled items in menus having blurry text Qt is a strange beast. This is because the fusion style draws a copy of the text offset by 1px in the Light color from the disabled palette. Can also be fixed by setting the light color to the window color but that might have other undesirable effects. --- src/calibre/gui2/progress_indicator/CalibreStyle.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/gui2/progress_indicator/CalibreStyle.cpp b/src/calibre/gui2/progress_indicator/CalibreStyle.cpp index fc769d59b8..29dec84d47 100644 --- a/src/calibre/gui2/progress_indicator/CalibreStyle.cpp +++ b/src/calibre/gui2/progress_indicator/CalibreStyle.cpp @@ -167,6 +167,10 @@ int CalibreStyle::styleHint(StyleHint hint, const QStyleOption *option, const QW case SH_UnderlineShortcut: return 0; #endif + case SH_EtchDisabledText: + return 0; + case SH_DitherDisabledText: + return 0; default: break; }