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: 1px solid {tm.color(colors.BORDER)};
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}}
|
}}
|
||||||
QComboBox,
|
|
||||||
QLineEdit {{
|
QLineEdit {{
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
}}
|
}}
|
||||||
|
@ -75,6 +74,9 @@ QComboBox:!editable:pressed {{
|
||||||
|
|
||||||
def combobox_styles(tm: ThemeManager, buf: str) -> str:
|
def combobox_styles(tm: ThemeManager, buf: str) -> str:
|
||||||
buf += f"""
|
buf += f"""
|
||||||
|
QComboBox {{
|
||||||
|
padding: 1px 4px 2px 6px;
|
||||||
|
}}
|
||||||
QComboBox:editable:on,
|
QComboBox:editable:on,
|
||||||
QComboBox:editable:focus,
|
QComboBox:editable:focus,
|
||||||
QComboBox::drop-down:focus:editable,
|
QComboBox::drop-down:focus:editable,
|
||||||
|
@ -101,8 +103,8 @@ QComboBox::item::icon:selected {{
|
||||||
QComboBox::drop-down {{
|
QComboBox::drop-down {{
|
||||||
margin: -1px;
|
margin: -1px;
|
||||||
subcontrol-origin: padding;
|
subcontrol-origin: padding;
|
||||||
padding: 4px;
|
padding: 2px;
|
||||||
width: 18px;
|
width: 16px;
|
||||||
subcontrol-position: top right;
|
subcontrol-position: top right;
|
||||||
border: 1px solid {tm.color(colors.BUTTON_BORDER)};
|
border: 1px solid {tm.color(colors.BUTTON_BORDER)};
|
||||||
border-top-right-radius: 5px;
|
border-top-right-radius: 5px;
|
||||||
|
|
Loading…
Reference in a new issue