Skip to content

Commit

Permalink
Merge pull request #689 from luk1337/luk/splitter
Browse files Browse the repository at this point in the history
Adjust QSplitter style
  • Loading branch information
daniel-123 authored Sep 28, 2024
2 parents e66eaf4 + 49a402e commit 91b40db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions syncplay/ui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1510,6 +1510,8 @@ def addTopLayout(self, window):
if isMacOS(): window.userlistLayout.setContentsMargins(3, 0, 3, 0)

window.listSplit = QtWidgets.QSplitter(Qt.Vertical, self)
window.listSplit.setHandleWidth(6)
window.listSplit.setStyle(QtWidgets.QStyleFactory.create("fusion"))
window.listSplit.addWidget(window.userlistFrame)
window.listLayout.addWidget(window.listSplit)
window.roomsCombobox = QtWidgets.QComboBox(self)
Expand Down Expand Up @@ -1544,8 +1546,10 @@ def addTopLayout(self, window):

window.topSplit.addWidget(window.outputFrame)
window.topSplit.addWidget(window.listFrame)
window.topSplit.setHandleWidth(6)
window.topSplit.setStretchFactor(0, 4)
window.topSplit.setStretchFactor(1, 5)
window.topSplit.setStyle(QtWidgets.QStyleFactory.create("fusion"))
window.mainLayout.addWidget(window.topSplit)
window.topSplit.setSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)

Expand Down

0 comments on commit 91b40db

Please sign in to comment.