From f2ca670dada1a20f2e5b0a042885231fdc8093fb Mon Sep 17 00:00:00 2001 From: quadbyte Date: Mon, 11 Aug 2025 22:33:52 -0400 Subject: [PATCH] NComboBox height was too thin --- Widgets/NComboBox.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Widgets/NComboBox.qml b/Widgets/NComboBox.qml index bf971c0..b557efd 100644 --- a/Widgets/NComboBox.qml +++ b/Widgets/NComboBox.qml @@ -8,6 +8,7 @@ ComboBox { id: root readonly property real scaling: Scaling.scale(screen) + readonly property real preferredHeight: Style.baseWidgetSize * 1.25 * scaling property list optionsKeys: [] property list optionsLabels: [] @@ -15,7 +16,7 @@ ComboBox { property var onSelected: function (string) {} Layout.fillWidth: true - Layout.preferredHeight: Style.baseWidgetSize * scaling + Layout.preferredHeight: height model: optionsKeys currentIndex: model.indexOf(currentKey) @@ -26,7 +27,7 @@ ComboBox { // Rounded background background: Rectangle { implicitWidth: 120 * scaling - implicitHeight: Style.baseWidgetSize * scaling + implicitHeight: preferredHeight color: Colors.surfaceVariant border.color: root.activeFocus ? Colors.hover : Colors.outline border.width: Math.max(1, Style.borderThin * scaling)