From 49a402e93e06f161b1b3c29f7089d2c45b561934 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Mon, 15 Jul 2024 18:05:22 +0200 Subject: [PATCH] Adjust QSplitter style This looks much better when using PySide6 6.7.2. --- syncplay/ui/gui.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syncplay/ui/gui.py b/syncplay/ui/gui.py index ad86dbf..e32bd70 100755 --- a/syncplay/ui/gui.py +++ b/syncplay/ui/gui.py @@ -1510,6 +1510,8 @@ class MainWindow(QtWidgets.QMainWindow): 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) @@ -1544,8 +1546,10 @@ class MainWindow(QtWidgets.QMainWindow): 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)