summaryrefslogtreecommitdiff
path: root/onionshare_gui
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2018-10-10 18:16:08 -0700
committerMicah Lee <micah@micahflee.com>2018-10-10 18:16:08 -0700
commit753380663b5344e0b653ac8279143764b17ed465 (patch)
treea6573c53fd74d6aa0df4cd1c5e15b26877f7bb61 /onionshare_gui
parentbeda37df06722cfa6163897a9f2ad3388084886b (diff)
downloadonionshare-753380663b5344e0b653ac8279143764b17ed465.tar.gz
onionshare-753380663b5344e0b653ac8279143764b17ed465.zip
Final few tweaks to make this look perfect in macOS
Diffstat (limited to 'onionshare_gui')
-rw-r--r--onionshare_gui/mode/share_mode/file_selection.py3
-rw-r--r--onionshare_gui/onionshare_gui.py2
-rw-r--r--onionshare_gui/server_status.py4
3 files changed, 5 insertions, 4 deletions
diff --git a/onionshare_gui/mode/share_mode/file_selection.py b/onionshare_gui/mode/share_mode/file_selection.py
index d59df234..6bfa7dbf 100644
--- a/onionshare_gui/mode/share_mode/file_selection.py
+++ b/onionshare_gui/mode/share_mode/file_selection.py
@@ -89,7 +89,7 @@ class FileList(QtWidgets.QListWidget):
self.setAcceptDrops(True)
self.setIconSize(QtCore.QSize(32, 32))
self.setSortingEnabled(True)
- self.setMinimumHeight(205)
+ self.setMinimumHeight(160)
self.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)
self.drop_here_image = DropHereLabel(self.common, self, True)
self.drop_here_text = DropHereLabel(self.common, self, False)
@@ -261,6 +261,7 @@ class FileList(QtWidgets.QListWidget):
# Item info widget, with a white background
item_info_layout = QtWidgets.QHBoxLayout()
+ item_info_layout.setContentsMargins(0, 0, 0, 0)
item_info_layout.addWidget(item_size)
item_info_layout.addWidget(item.item_button)
item_info = QtWidgets.QWidget()
diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py
index e672d74e..c2e6657b 100644
--- a/onionshare_gui/onionshare_gui.py
+++ b/onionshare_gui/onionshare_gui.py
@@ -46,7 +46,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.common = common
self.common.log('OnionShareGui', '__init__')
self.setMinimumWidth(820)
- self.setMinimumHeight(650)
+ self.setMinimumHeight(660)
self.onion = onion
self.qtapp = qtapp
diff --git a/onionshare_gui/server_status.py b/onionshare_gui/server_status.py
index 99aaa9f1..0267d826 100644
--- a/onionshare_gui/server_status.py
+++ b/onionshare_gui/server_status.py
@@ -142,12 +142,12 @@ class ServerStatus(QtWidgets.QWidget):
When the widget is resized, try and adjust the display of a v3 onion URL.
"""
try:
- self.get_url()
+ # Wrap the URL label
url_length=len(self.get_url())
if url_length > 60:
width = self.frameGeometry().width()
if width < 530:
- wrapped_onion_url = textwrap.fill(self.get_url(), 50)
+ wrapped_onion_url = textwrap.fill(self.get_url(), 46)
self.url.setText(wrapped_onion_url)
else:
self.url.setText(self.get_url())