From 8f4c804b48fb15735718bddf2a0d5825d95523ca Mon Sep 17 00:00:00 2001 From: Saptak S Date: Mon, 18 Oct 2021 14:45:36 +0530 Subject: [PATCH] Updates the strings and alignment of content --- desktop/src/onionshare/auto_connect.py | 22 ++++++++++++------- .../src/onionshare/resources/locale/en.json | 6 ++--- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/desktop/src/onionshare/auto_connect.py b/desktop/src/onionshare/auto_connect.py index ff456aa4..f4378372 100644 --- a/desktop/src/onionshare/auto_connect.py +++ b/desktop/src/onionshare/auto_connect.py @@ -93,15 +93,21 @@ class AutoConnect(QtWidgets.QWidget): # Layout - self.layout = QtWidgets.QVBoxLayout() - self.layout.setContentsMargins(0, 0, 0, 0) + content_layout = QtWidgets.QVBoxLayout() + content_layout.addStretch() + content_layout.addWidget(self.image) + content_layout.addWidget(description_widget) + content_layout.addStretch() + content_layout.addWidget(cta_widget) + content_layout.addStretch() + content_layout.setAlignment(QtCore.Qt.AlignCenter) + content_widget = QtWidgets.QWidgets() + content_widget.setLayout(content_layout) + + self.layout = QtWidgets.QHBoxLayout() + self.layout.addWidget(content_widget) self.layout.addStretch() - self.layout.addWidget(self.image) - self.layout.addWidget(description_widget) - self.layout.addStretch() - self.layout.addWidget(cta_widget) - self.layout.addStretch() - self.layout.setAlignment(QtCore.Qt.AlignCenter) + self.setLayout(self.layout) def toggle_auto_connect(self): diff --git a/desktop/src/onionshare/resources/locale/en.json b/desktop/src/onionshare/resources/locale/en.json index 84332c16..0d142017 100644 --- a/desktop/src/onionshare/resources/locale/en.json +++ b/desktop/src/onionshare/resources/locale/en.json @@ -41,9 +41,9 @@ "gui_please_wait": "Starting… Click to cancel.", "zip_progress_bar_format": "Compressing: %p%", "gui_tor_settings_window_title": "Tor Settings", - "gui_autoconnect_description": "Some description about OnionShare and explain autoconnect stuff", - "gui_enable_autoconnect_checkbox": "Enable automatically connecting to OnionShare", - "gui_autoconnect_start": "Start OnionShare", + "gui_autoconnect_description": "OnionShare relies on the Tor Network, run by thousands of volunteers around the world.", + "gui_enable_autoconnect_checkbox": "Enable automatically connecting to Tor", + "gui_autoconnect_start": "Connect to Tor", "gui_autoconnect_configure": "Configure", "gui_settings_window_title": "Settings", "gui_settings_autoupdate_label": "Check for new version",