Set min width and height so everything always looks good, and change onion address to monospace font

This commit is contained in:
Micah Lee 2018-10-09 20:51:10 -07:00
parent 9aa982563b
commit 6227c6cbc5
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
3 changed files with 5 additions and 3 deletions

View file

@ -211,6 +211,7 @@ class Common(object):
color: #000000; color: #000000;
padding: 10px; padding: 10px;
border: 1px solid #666666; border: 1px solid #666666;
font-size: 12px;
} }
""", """,

View file

@ -45,7 +45,8 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.common = common self.common = common
self.common.log('OnionShareGui', '__init__') self.common.log('OnionShareGui', '__init__')
self.setMinimumWidth(700) self.setMinimumWidth(820)
self.setMinimumHeight(530)
self.onion = onion self.onion = onion
self.qtapp = qtapp self.qtapp = qtapp

View file

@ -90,20 +90,20 @@ class ServerStatus(QtWidgets.QWidget):
self.server_button.clicked.connect(self.server_button_clicked) self.server_button.clicked.connect(self.server_button_clicked)
# URL layout # URL layout
url_font = QtGui.QFont() url_font = QtGui.QFontDatabase.systemFont(QtGui.QFontDatabase.FixedFont)
self.url_description = QtWidgets.QLabel() self.url_description = QtWidgets.QLabel()
self.url_description.setWordWrap(True) self.url_description.setWordWrap(True)
self.url_description.setMinimumHeight(50) self.url_description.setMinimumHeight(50)
self.url = QtWidgets.QLabel() self.url = QtWidgets.QLabel()
self.url.setFont(url_font) self.url.setFont(url_font)
self.url.setWordWrap(True) self.url.setWordWrap(True)
self.url.setMinimumHeight(65)
self.url.setMinimumSize(self.url.sizeHint()) self.url.setMinimumSize(self.url.sizeHint())
self.url.setStyleSheet(self.common.css['server_status_url']) self.url.setStyleSheet(self.common.css['server_status_url'])
self.copy_url_button = QtWidgets.QPushButton(strings._('gui_copy_url', True)) self.copy_url_button = QtWidgets.QPushButton(strings._('gui_copy_url', True))
self.copy_url_button.setFlat(True) self.copy_url_button.setFlat(True)
self.copy_url_button.setStyleSheet(self.common.css['server_status_url_buttons']) self.copy_url_button.setStyleSheet(self.common.css['server_status_url_buttons'])
self.copy_url_button.setMinimumHeight(65)
self.copy_url_button.clicked.connect(self.copy_url) self.copy_url_button.clicked.connect(self.copy_url)
self.copy_hidservauth_button = QtWidgets.QPushButton(strings._('gui_copy_hidservauth', True)) self.copy_hidservauth_button = QtWidgets.QPushButton(strings._('gui_copy_hidservauth', True))
self.copy_hidservauth_button.setFlat(True) self.copy_hidservauth_button.setFlat(True)