mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
Adjust padding of QComboBox and its drop-down arrow
This commit is contained in:
parent
3fdbd95e40
commit
cdfa6ebd40
1 changed files with 5 additions and 3 deletions
|
@ -17,7 +17,6 @@ QListView {{
|
|||
border: 1px solid {tm.color(colors.BORDER)};
|
||||
border-radius: 5px;
|
||||
}}
|
||||
QComboBox,
|
||||
QLineEdit {{
|
||||
padding: 2px;
|
||||
}}
|
||||
|
@ -75,6 +74,9 @@ QComboBox:!editable:pressed {{
|
|||
|
||||
def combobox_styles(tm: ThemeManager, buf: str) -> str:
|
||||
buf += f"""
|
||||
QComboBox {{
|
||||
padding: 1px 4px 2px 6px;
|
||||
}}
|
||||
QComboBox:editable:on,
|
||||
QComboBox:editable:focus,
|
||||
QComboBox::drop-down:focus:editable,
|
||||
|
@ -101,8 +103,8 @@ QComboBox::item::icon:selected {{
|
|||
QComboBox::drop-down {{
|
||||
margin: -1px;
|
||||
subcontrol-origin: padding;
|
||||
padding: 4px;
|
||||
width: 18px;
|
||||
padding: 2px;
|
||||
width: 16px;
|
||||
subcontrol-position: top right;
|
||||
border: 1px solid {tm.color(colors.BUTTON_BORDER)};
|
||||
border-top-right-radius: 5px;
|
||||
|
|
Loading…
Reference in a new issue