Skip to content

Commit

Permalink
Fix minimum heights for split labels
Browse files Browse the repository at this point in the history
* Fix broken macOS check
* Apply 21/27 minimum heights to match listlabel
  • Loading branch information
luk1337 committed Jul 15, 2024
1 parent 9450c98 commit a3153cc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions syncplay/ui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,10 @@ def addTopLayout(self, window):
if not isMacOS(): window.outputbox.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOn)

window.outputlabel = QtWidgets.QLabel(getMessage("notifications-heading-label"))
window.outputlabel.setMinimumHeight(27)
if isMacOS():
window.outputlabel.setMinimumHeight(21)
else:
window.outputlabel.setMinimumHeight(27)
window.chatInput = QtWidgets.QLineEdit()
window.chatInput.setMaxLength(constants.MAX_CHAT_MESSAGE_LENGTH)
window.chatInput.returnPressed.connect(self.sendChatMessage)
Expand Down Expand Up @@ -1474,7 +1477,7 @@ def addTopLayout(self, window):
self.listTreeView.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.listTreeView.customContextMenuRequested.connect(self.openRoomMenu)
window.listlabel = QtWidgets.QLabel(getMessage("userlist-heading-label"))
if isMacOS:
if isMacOS():
window.listlabel.setMinimumHeight(21)
window.sslButton = QtWidgets.QPushButton(QtGui.QPixmap(resourcespath + 'lock_green.png').scaled(14, 14),"")
window.sslButton.setVisible(False)
Expand Down

0 comments on commit a3153cc

Please sign in to comment.