From 5469beeeb60e965997b9ec2f04544cdab8ccf9e9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 15 Oct 2019 06:42:34 +0530 Subject: [PATCH] Disable alternating row colors when using dark color themes as the alternate color Qt picks is pretty bad --- src/calibre/gui2/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index ecfcfb5098..7b9406b309 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -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