From 2a0d40e15d30f74e601b4ce8e6894eec343d0f3c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 8 May 2020 16:03:29 +1000 Subject: [PATCH] stats area grouping box fix https://anki.tenderapp.com/discussions/beta-testing/1928-cosmetic-issue --- qt/aqt/stats.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)