Add margin to QPushButton to prevent clipping (#4201)

* Update CONTRIBUTORS

* Add margin to QPushButton to prevent clipping
This commit is contained in:
jcznk 2025-07-13 21:21:31 +02:00 committed by GitHub
parent 3b18097550
commit 4604bc7567
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -234,6 +234,7 @@ Emmanuel Ferdman <https://github.com/emmanuel-ferdman>
Sunong2008 <https://github.com/Sunrongguo2008>
Marvin Kopf <marvinkopf@outlook.com>
Kevin Nakamura <grinkers@grinkers.net>
jcznk <https://github.com/jcznk>
********************

View file

@ -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,