Fix the color for separators wrong in dark mode.

This commit is contained in:
Charles Haley 2021-04-04 12:02:24 +01:00
parent aa57c4f8cf
commit 5b9428d4b1

View File

@ -450,7 +450,7 @@ class Separator(QWidget): # {{{
The height of the separator is computed using this widget, The height of the separator is computed using this widget,
''' '''
QWidget.__init__(self, parent) QWidget.__init__(self, parent)
self.bcol = QColor(QPalette.ColorRole.Text) self.bcol = QApplication.instance().palette().color(QPalette.ColorRole.Text)
self.update_brush() self.update_brush()
self.widget_for_height = widget_for_height self.widget_for_height = widget_for_height
self.setSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.MinimumExpanding) self.setSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.MinimumExpanding)