mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 21:57:12 -05:00
another workaround for the gtk+ theme
This commit is contained in:
parent
12abf27478
commit
67cf37865c
1 changed files with 4 additions and 0 deletions
|
|
@ -1278,6 +1278,10 @@ class ChangeModel(QDialog):
|
|||
self.tlayout.setMargin(0)
|
||||
self.twidg = None
|
||||
self.form.templateMap.setLayout(self.tlayout)
|
||||
if self.style().objectName() == "gtk+":
|
||||
# gtk+ requires margins in inner layout
|
||||
self.form.verticalLayout_2.setContentsMargins(0, 11, 0, 0)
|
||||
self.form.verticalLayout_3.setContentsMargins(0, 11, 0, 0)
|
||||
# model chooser
|
||||
import aqt.modelchooser
|
||||
self.oldModel = self.browser.col.models.get(
|
||||
|
|
|
|||
Loading…
Reference in a new issue