From cdfa6ebd40119db30fce56d307d203ce05af08aa Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Sun, 4 Sep 2022 15:33:29 +0200 Subject: [PATCH] Adjust padding of QComboBox and its drop-down arrow --- qt/aqt/stylesheets.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qt/aqt/stylesheets.py b/qt/aqt/stylesheets.py index 41a029c6d..a3cd3881f 100644 --- a/qt/aqt/stylesheets.py +++ b/qt/aqt/stylesheets.py @@ -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;