stats area grouping box fix

https://anki.tenderapp.com/discussions/beta-testing/1928-cosmetic-issue
This commit is contained in:
Damien Elmes 2020-05-08 16:03:29 +10:00
parent 3f534b8c86
commit 2a0d40e15d

View file

@ -34,7 +34,11 @@ class DeckStats(QDialog):
self.setMinimumWidth(700)
f = self.form
if theme_manager.night_mode and not theme_manager.macos_dark_mode():
self.setStyleSheet("QGroupBox { padding-top: 0; }")
# the grouping box renders incorrectly in the fusion theme. 5.9+
# 5.13 behave differently to 5.14, but it looks bad in either case,
# and adjusting the top margin makes the 'save PDF' button show in
# the wrong place, so for now we just disable the border instead
self.setStyleSheet("QGroupBox { border: 0; }")
f.setupUi(self)
restoreGeom(self, self.name)
b = f.buttonBox.addButton(_("Save PDF"), QDialogButtonBox.ActionRole)