mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-25 10:42:58 -03:00
allow word wrap of URL QLabels, and set MinimumHeight so they don't get shrunk in the layout
This commit is contained in:
parent
37657ca453
commit
6cff5e06b8
1 changed files with 4 additions and 0 deletions
|
@ -84,10 +84,14 @@ class ServerStatus(QtWidgets.QWidget):
|
||||||
# URL layout
|
# URL layout
|
||||||
url_font = QtGui.QFont()
|
url_font = QtGui.QFont()
|
||||||
self.url_description = QtWidgets.QLabel(strings._('gui_url_description', True))
|
self.url_description = QtWidgets.QLabel(strings._('gui_url_description', True))
|
||||||
|
self.url_description.setWordWrap(True)
|
||||||
|
self.url_description.setMinimumHeight(50)
|
||||||
self.url_label = QtWidgets.QLabel()
|
self.url_label = QtWidgets.QLabel()
|
||||||
self.url_label.setStyleSheet('QLabel { color: #666666; font-size: 12px; }')
|
self.url_label.setStyleSheet('QLabel { color: #666666; font-size: 12px; }')
|
||||||
self.url = QtWidgets.QLabel()
|
self.url = QtWidgets.QLabel()
|
||||||
self.url.setFont(url_font)
|
self.url.setFont(url_font)
|
||||||
|
self.url.setWordWrap(True)
|
||||||
|
self.url.setMinimumHeight(60)
|
||||||
self.url.setStyleSheet('QLabel { background-color: #ffffff; color: #000000; padding: 10px; border: 1px solid #666666; }')
|
self.url.setStyleSheet('QLabel { background-color: #ffffff; color: #000000; padding: 10px; border: 1px solid #666666; }')
|
||||||
|
|
||||||
url_buttons_style = 'QPushButton { color: #3f7fcf; }'
|
url_buttons_style = 'QPushButton { color: #3f7fcf; }'
|
||||||
|
|
Loading…
Add table
Reference in a new issue