mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix the color for separators wrong in dark mode.
This commit is contained in:
parent
aa57c4f8cf
commit
5b9428d4b1
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user