mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 11:47:27 -03:00
Updates the strings and alignment of content
This commit is contained in:
parent
6520d4ba25
commit
8f4c804b48
2 changed files with 17 additions and 11 deletions
|
@ -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):
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue