mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-29 09:16:24 -05:00
Increase minimum width, and remove word wrap, to fix QLabel squishing problem
This commit is contained in:
parent
24a672dac9
commit
2a23b02f98
@ -56,7 +56,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
|||||||
|
|
||||||
self.setWindowTitle('OnionShare')
|
self.setWindowTitle('OnionShare')
|
||||||
self.setWindowIcon(QtGui.QIcon(common.get_resource_path('images/logo.png')))
|
self.setWindowIcon(QtGui.QIcon(common.get_resource_path('images/logo.png')))
|
||||||
self.setMinimumWidth(400)
|
self.setMinimumWidth(500)
|
||||||
|
|
||||||
# Load settings
|
# Load settings
|
||||||
self.config = config
|
self.config = config
|
||||||
|
@ -92,12 +92,10 @@ 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_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.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; }'
|
||||||
@ -189,10 +187,6 @@ class ServerStatus(QtWidgets.QWidget):
|
|||||||
self.copy_hidservauth_button.show()
|
self.copy_hidservauth_button.show()
|
||||||
else:
|
else:
|
||||||
self.copy_hidservauth_button.hide()
|
self.copy_hidservauth_button.hide()
|
||||||
|
|
||||||
# Resize parent widget
|
|
||||||
p = self.parentWidget()
|
|
||||||
p.resize(p.sizeHint())
|
|
||||||
else:
|
else:
|
||||||
self.url_description.hide()
|
self.url_description.hide()
|
||||||
self.url_label.hide()
|
self.url_label.hide()
|
||||||
|
Loading…
Reference in New Issue
Block a user