This commit is contained in:
Kovid Goyal 2021-04-04 17:16:16 +05:30
commit 08f79d86a3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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)