diff --git a/qt/aqt/stats.py b/qt/aqt/stats.py index 2d64208d1..646d42fd5 100644 --- a/qt/aqt/stats.py +++ b/qt/aqt/stats.py @@ -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)