Disable alternating row colors when using dark color themes as the alternate color Qt picks is pretty bad

This commit is contained in:
Kovid Goyal 2019-10-15 06:42:34 +05:30
parent 5b431a8c6a
commit 5469beeeb6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1014,7 +1014,10 @@ class Application(QApplication):
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