only apply padding fix to stats screen

It was breaking the display of dialogs like the filtered deck screen
This commit is contained in:
Damien Elmes 2020-02-02 13:07:24 +10:00
parent 3c48cbff6f
commit 91326ec6d9
2 changed files with 3 additions and 4 deletions

View file

@ -7,6 +7,7 @@ import time
import aqt
from anki.lang import _
from aqt.qt import *
from aqt.theme import theme_manager
from aqt.utils import (
addCloseShortcut,
getSaveFile,
@ -32,6 +33,8 @@ class DeckStats(QDialog):
self.wholeCollection = False
self.setMinimumWidth(700)
f = self.form
if theme_manager.night_mode and not theme_manager.macos_dark_mode():
self.setStyleSheet("QGroupBox { padding-top: 0; }")
f.setupUi(self)
restoreGeom(self, self.name)
b = f.buttonBox.addButton(_("Save PDF"), QDialogButtonBox.ActionRole)

View file

@ -118,10 +118,6 @@ QTreeWidget {
QToolTip {
border: 0;
}
QGroupBox {
padding-top: 0px;
}
"""
if not self.macos_dark_mode():