Skip to content

Commit

Permalink
Fix disabled items in menus having blurry text
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kovidgoyal committed Feb 13, 2024
1 parent f580758 commit ae6ef28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/calibre/gui2/progress_indicator/CalibreStyle.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit ae6ef28

Please sign in to comment.