From 31439e325d6afe6fd2c5da33c739bd296ca50477 Mon Sep 17 00:00:00 2001 From: Wu Yi-Wei Date: Fri, 12 Apr 2024 12:21:26 +0800 Subject: [PATCH] Add Margins on the Buttons on the About Page (#3137) * Add Margins on the Buttons on the About Page * Fix contributors * Fix format --- CONTRIBUTORS | 1 + qt/aqt/about.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index f953dbd16..49b53f53a 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -171,6 +171,7 @@ ijqq AntoineQ1 jthulhu Escape0707 +Wu Yi-Wei ******************** The text of the 3 clause BSD license follows: diff --git a/qt/aqt/about.py b/qt/aqt/about.py index 465e28078..3dc1199ba 100644 --- a/qt/aqt/about.py +++ b/qt/aqt/about.py @@ -43,6 +43,8 @@ def show(mw: aqt.AnkiQt) -> QDialog: qconnect(btn.clicked, on_copy) abt.buttonBox.addButton(btn, QDialogButtonBox.ButtonRole.ActionRole) abt.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setFocus() + btnLayout = abt.buttonBox.layout() + btnLayout.setContentsMargins(12, 12, 12, 12) # WebView cleanup ######################################################################