fix sidebar background color on windows 10
This commit is contained in:
parent
e7e8c34d27
commit
5493ca554f
@ -1041,9 +1041,9 @@ by clicking on one on the left."""
|
|||||||
self.sidebarTree.setIndentation(15)
|
self.sidebarTree.setIndentation(15)
|
||||||
self.sidebarTree.expanded.connect(self.onSidebarItemExpanded) # type: ignore
|
self.sidebarTree.expanded.connect(self.onSidebarItemExpanded) # type: ignore
|
||||||
dw.setWidget(self.sidebarTree)
|
dw.setWidget(self.sidebarTree)
|
||||||
p = QPalette()
|
# match window background color
|
||||||
p.setColor(QPalette.Base, p.window().color())
|
bgcolor = QPalette().window().color().name()
|
||||||
self.sidebarTree.setPalette(p)
|
self.sidebarTree.setStyleSheet("QTreeView { background: '%s'; }" % bgcolor)
|
||||||
self.sidebarDockWidget.setFloating(False)
|
self.sidebarDockWidget.setFloating(False)
|
||||||
self.sidebarDockWidget.visibilityChanged.connect(self.onSidebarVisChanged) # type: ignore
|
self.sidebarDockWidget.visibilityChanged.connect(self.onSidebarVisChanged) # type: ignore
|
||||||
self.sidebarDockWidget.setTitleBarWidget(QWidget())
|
self.sidebarDockWidget.setTitleBarWidget(QWidget())
|
||||||
|
Loading…
Reference in New Issue
Block a user