mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
only apply padding fix to stats screen
It was breaking the display of dialogs like the filtered deck screen
This commit is contained in:
parent
3c48cbff6f
commit
91326ec6d9
2 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -118,10 +118,6 @@ QTreeWidget {
|
|||
QToolTip {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
QGroupBox {
|
||||
padding-top: 0px;
|
||||
}
|
||||
"""
|
||||
|
||||
if not self.macos_dark_mode():
|
||||
|
|
Loading…
Reference in a new issue