diff options
author | Micah Lee <micah@micahflee.com> | 2018-10-09 20:51:10 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2018-10-09 20:51:10 -0700 |
commit | 6227c6cbc540078deaff627a1c70e907009dff00 (patch) | |
tree | 7e4502799b43c7c7b2b26dd729e3677ddc1c995e /onionshare_gui | |
parent | 9aa982563ba2bfe71d56221d5137e857d1425fe2 (diff) | |
download | onionshare-6227c6cbc540078deaff627a1c70e907009dff00.tar.gz onionshare-6227c6cbc540078deaff627a1c70e907009dff00.zip |
Set min width and height so everything always looks good, and change onion address to monospace font
Diffstat (limited to 'onionshare_gui')
-rw-r--r-- | onionshare_gui/onionshare_gui.py | 3 | ||||
-rw-r--r-- | onionshare_gui/server_status.py | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py index 9a71ae28..3175f0f9 100644 --- a/onionshare_gui/onionshare_gui.py +++ b/onionshare_gui/onionshare_gui.py @@ -45,7 +45,8 @@ class OnionShareGui(QtWidgets.QMainWindow): self.common = common self.common.log('OnionShareGui', '__init__') - self.setMinimumWidth(700) + self.setMinimumWidth(820) + self.setMinimumHeight(530) self.onion = onion self.qtapp = qtapp diff --git a/onionshare_gui/server_status.py b/onionshare_gui/server_status.py index 32135ca4..99aaa9f1 100644 --- a/onionshare_gui/server_status.py +++ b/onionshare_gui/server_status.py @@ -90,20 +90,20 @@ class ServerStatus(QtWidgets.QWidget): self.server_button.clicked.connect(self.server_button_clicked) # URL layout - url_font = QtGui.QFont() + url_font = QtGui.QFontDatabase.systemFont(QtGui.QFontDatabase.FixedFont) self.url_description = QtWidgets.QLabel() self.url_description.setWordWrap(True) self.url_description.setMinimumHeight(50) self.url = QtWidgets.QLabel() self.url.setFont(url_font) self.url.setWordWrap(True) - self.url.setMinimumHeight(65) self.url.setMinimumSize(self.url.sizeHint()) self.url.setStyleSheet(self.common.css['server_status_url']) self.copy_url_button = QtWidgets.QPushButton(strings._('gui_copy_url', True)) self.copy_url_button.setFlat(True) 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_hidservauth_button = QtWidgets.QPushButton(strings._('gui_copy_hidservauth', True)) self.copy_hidservauth_button.setFlat(True) |