From 05fbf19d24d4fac4ab338a670a1562f6b5f6ef47 Mon Sep 17 00:00:00 2001 From: Gabriel20xx Date: Mon, 18 Aug 2025 09:57:54 +0200 Subject: [PATCH] Refactor QComboBox styling to use native system arrow and adjust padding for improved appearance --- main.py | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/main.py b/main.py index e586737..eabce77 100644 --- a/main.py +++ b/main.py @@ -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']};