mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-21 21:26:06 +01:00
Disable alternating row colors when using dark color themes as the alternate color Qt picks is pretty bad
This commit is contained in:
parent
5b431a8c6a
commit
5469beeeb6
1 changed files with 3 additions and 0 deletions
|
|
@ -1014,7 +1014,10 @@ def setup_styles(self, force_calibre_style):
|
|||
self.is_dark_theme = is_dark_theme()
|
||||
if self.is_dark_theme:
|
||||
pal = self.palette()
|
||||
# dark blue is unreadable when using dark backgrounds
|
||||
pal.setColor(pal.Link, QColor('#6CB4EE'))
|
||||
# alternating row colors look awful in most dark mode themes
|
||||
pal.setColor(pal.AlternateBase, pal.color(pal.Base))
|
||||
if isosx and self.using_calibre_style:
|
||||
# Workaround for https://bugreports.qt.io/browse/QTBUG-75321
|
||||
# Buttontext is set to black for some reason
|
||||
|
|
|
|||
Loading…
Reference in a new issue