Refactor QComboBox styling to use native system arrow and adjust padding for improved appearance
This commit is contained in:
@@ -941,19 +941,13 @@ class SettingsDialog(QtWidgets.QDialog):
|
||||
QComboBox {{
|
||||
font-size: 9pt;
|
||||
min-height: 20px;
|
||||
padding: 2px 6px;
|
||||
padding: 2px 24px 2px 6px; /* extra right space for native arrow */
|
||||
min-width: 90px;
|
||||
background-color: {colors['input_bg']};
|
||||
border: 1px solid {colors['border']};
|
||||
border-radius: 3px;
|
||||
color: {colors['foreground']};
|
||||
}}
|
||||
QComboBox::drop-down {{
|
||||
border: none;
|
||||
width: 20px;
|
||||
subcontrol-origin: padding;
|
||||
subcontrol-position: center right;
|
||||
}}
|
||||
/* Removed custom down-arrow to use native system arrow (fix for missing/rectangle glyphs) */
|
||||
QComboBox QAbstractItemView {{
|
||||
background-color: {colors['input_bg']};
|
||||
@@ -1155,19 +1149,13 @@ class SettingsDialog(QtWidgets.QDialog):
|
||||
QComboBox {{
|
||||
font-size: 9pt;
|
||||
min-height: 20px;
|
||||
padding: 2px 6px;
|
||||
padding: 2px 24px 2px 6px;
|
||||
min-width: 90px;
|
||||
background-color: {colors['input_bg']};
|
||||
border: 1px solid {colors['border']};
|
||||
border-radius: 3px;
|
||||
color: {colors['foreground']};
|
||||
}}
|
||||
QComboBox::drop-down {{
|
||||
border: none;
|
||||
width: 20px;
|
||||
subcontrol-origin: padding;
|
||||
subcontrol-position: center right;
|
||||
}}
|
||||
/* Removed custom down-arrow to use native system arrow (fix for missing/rectangle glyphs) */
|
||||
QComboBox QAbstractItemView {{
|
||||
background-color: {colors['input_bg']};
|
||||
@@ -2987,19 +2975,13 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
QComboBox {{
|
||||
font-size: 9pt;
|
||||
min-height: 20px;
|
||||
padding: 2px 6px;
|
||||
padding: 2px 24px 2px 6px;
|
||||
min-width: 90px;
|
||||
background-color: {colors['input_bg']};
|
||||
border: 1px solid {colors['border']};
|
||||
border-radius: 3px;
|
||||
color: {colors['foreground']};
|
||||
}}
|
||||
QComboBox::drop-down {{
|
||||
border: none;
|
||||
width: 20px;
|
||||
subcontrol-origin: padding;
|
||||
subcontrol-position: center right;
|
||||
}}
|
||||
/* Removed custom down-arrow to use native system arrow (fix for missing/rectangle glyphs) */
|
||||
QComboBox QAbstractItemView {{
|
||||
background-color: {colors['input_bg']};
|
||||
@@ -3102,19 +3084,13 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
QComboBox {{
|
||||
font-size: 9pt;
|
||||
min-height: 20px;
|
||||
padding: 2px 6px;
|
||||
padding: 2px 24px 2px 6px;
|
||||
min-width: 90px;
|
||||
background-color: {colors['input_bg']};
|
||||
border: 1px solid {colors['border']};
|
||||
border-radius: 3px;
|
||||
color: {colors['foreground']};
|
||||
}}
|
||||
QComboBox::drop-down {{
|
||||
border: none;
|
||||
width: 20px;
|
||||
subcontrol-origin: padding;
|
||||
subcontrol-position: center right;
|
||||
}}
|
||||
/* Removed custom down-arrow to use native system arrow (fix for missing/rectangle glyphs) */
|
||||
QComboBox QAbstractItemView {{
|
||||
background-color: {colors['input_bg']};
|
||||
|
||||
Reference in New Issue
Block a user