From 4604bc75673b68c804dc1afe1ebb83ac1497f85e Mon Sep 17 00:00:00 2001 From: jcznk <60730312+jcznk@users.noreply.github.com> Date: Sun, 13 Jul 2025 21:21:31 +0200 Subject: [PATCH] Add margin to QPushButton to prevent clipping (#4201) * Update CONTRIBUTORS * Add margin to QPushButton to prevent clipping --- CONTRIBUTORS | 1 + qt/aqt/stylesheets.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index c22bc764a..9645c698f 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -234,6 +234,7 @@ Emmanuel Ferdman Sunong2008 Marvin Kopf Kevin Nakamura +jcznk ******************** diff --git a/qt/aqt/stylesheets.py b/qt/aqt/stylesheets.py index a262e18b9..6b4eff1f5 100644 --- a/qt/aqt/stylesheets.py +++ b/qt/aqt/stylesheets.py @@ -177,9 +177,13 @@ class CustomStyles: QPushButton:default {{ border: 1px solid {tm.var(colors.BORDER_FOCUS)}; }} + QPushButton {{ + margin: 1px; + }} QPushButton:focus {{ border: 2px solid {tm.var(colors.BORDER_FOCUS)}; outline: none; + margin: 0px; }} QPushButton:hover, QTabBar::tab:hover,