From 5b9428d4b10386e187f377fd8d92f90c1779e1a6 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Sun, 4 Apr 2021 12:02:24 +0100 Subject: [PATCH] Fix the color for separators wrong in dark mode. --- src/calibre/gui2/widgets2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/widgets2.py b/src/calibre/gui2/widgets2.py index 617d93c651..69d3c14c16 100644 --- a/src/calibre/gui2/widgets2.py +++ b/src/calibre/gui2/widgets2.py @@ -450,7 +450,7 @@ class Separator(QWidget): # {{{ The height of the separator is computed using this widget, ''' QWidget.__init__(self, parent) - self.bcol = QColor(QPalette.ColorRole.Text) + self.bcol = QApplication.instance().palette().color(QPalette.ColorRole.Text) self.update_brush() self.widget_for_height = widget_for_height self.setSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.MinimumExpanding)