mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04: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
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user