Make settings dialog checkboxes line up in macOS

This commit is contained in:
Micah Lee 2018-12-20 14:02:52 -08:00
parent 3241d56ecc
commit e501bb4de8
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
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