Merge pull request #853 from micahflee/847_fix_mac_css

Make settings dialog checkboxes line up in macOS
This commit is contained in:
Micah Lee 2018-12-21 10:38:38 -08:00 committed by GitHub
commit 6c0de01f99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -395,6 +395,13 @@ class Common(object):
'settings_connect_to_tor': """
QLabel {
font-style: italic;
}""",
# For some reason, this prevents extra padding around the v2 onion
# settings when viewing in macOS
'settings_onion_settings': """
QWidget {
border: 0;
}"""
}

View File

@ -162,6 +162,7 @@ class SettingsDialog(QtWidgets.QDialog):
onion_settings_layout.addWidget(hidservauth_details)
onion_settings_layout.addWidget(self.hidservauth_copy_button)
self.onion_settings_widget = QtWidgets.QWidget()
self.onion_settings_widget.setStyleSheet(self.common.css['settings_onion_settings'])
self.onion_settings_widget.setLayout(onion_settings_layout)
# General options layout