mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 17:56:01 +01:00
Fix the color for separators wrong in dark mode.
This commit is contained in:
parent
aa57c4f8cf
commit
5b9428d4b1
1 changed files with 1 additions and 1 deletions
|
|
@ -450,7 +450,7 @@ def __init__(self, parent, widget_for_height=None):
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue