Updates the strings and alignment of content

This commit is contained in:
Saptak S 2021-10-18 14:45:36 +05:30
parent 6520d4ba25
commit 8f4c804b48
No known key found for this signature in database
GPG key ID: 7B7F1772C0C6FCBF
2 changed files with 17 additions and 11 deletions

View file

@ -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):

View file

@ -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",