Updates content layout

This commit is contained in:
Saptak S 2021-10-28 14:10:22 +05:30
parent 8505bdcca1
commit bd027dff0c
No known key found for this signature in database
GPG key ID: 7B7F1772C0C6FCBF
3 changed files with 9 additions and 3 deletions

View file

@ -82,6 +82,7 @@ class AutoConnect(QtWidgets.QWidget):
common.gui.css["autoconnect_start_button"]
)
self.configure_button = QtWidgets.QPushButton(strings._("gui_autoconnect_configure"))
self.configure_button.setFlat(True)
self.configure_button.setStyleSheet(
common.gui.css["autoconnect_configure_button"]
)
@ -97,7 +98,6 @@ class AutoConnect(QtWidgets.QWidget):
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)

View file

@ -151,17 +151,23 @@ class GuiCommon:
QPushButton {
background-color: #5fa416;
color: #ffffff;
padding: 10px 30px;
padding: 10px;
border: 0;
border-radius: 5px;
}""",
"autoconnect_configure_button": """
QPushButton {
padding: 9px 29px;
color: #3f7fcf;
text-align: left;
}""",
"enable_autoconnect": """
QCheckBox {
margin-top: 30px;
background: #FCFCFC;
border: 1px solid #DDDBDA;
border-radius: 8px;
padding: 16px;
}""",
# Common styles between modes and their child widgets
"mode_settings_toggle_advanced": """

View file

@ -44,7 +44,7 @@
"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_autoconnect_configure": "Network Settings",
"gui_settings_window_title": "Settings",
"gui_settings_autoupdate_label": "Check for new version",
"gui_settings_autoupdate_option": "Notify me when a new version is available",