mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Add 1 px margin to QPushButton to prevent text from being cut
https://stackoverflow.com/questions/66637388/is-there-a-way-to-change-the-external-border-of-a-qpushbutton
This commit is contained in:
parent
3b18097550
commit
e57abaf0f8
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue