mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
stats area grouping box fix
https://anki.tenderapp.com/discussions/beta-testing/1928-cosmetic-issue
This commit is contained in:
parent
3f534b8c86
commit
2a0d40e15d
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue