From 7417fb99f18f85f7a3ff45ff30ef5594397bc71d Mon Sep 17 00:00:00 2001 From: Yasen Date: Wed, 31 Jul 2019 15:32:00 +0200 Subject: [PATCH] Updating the new QGC Combobox Items Updating the items to be inline with the theme. --- src/QmlControls/QGCComboBox.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/QmlControls/QGCComboBox.qml b/src/QmlControls/QGCComboBox.qml index 1cf7af2c3e..1fdc4632dd 100644 --- a/src/QmlControls/QGCComboBox.qml +++ b/src/QmlControls/QGCComboBox.qml @@ -30,6 +30,20 @@ ComboBox { border.width: enabled ? 1 : 0 border.color: "#999" } + delegate: ItemDelegate { + width: control.width + + contentItem: Text { + text: modelData + color: qgcPal.text + verticalAlignment: Text.AlignVCenter + } + background: Rectangle { + color: qgcPal.window + + } + highlighted: control.highlightedIndex === index + } /*! This defines the label of the button. */ contentItem: Item { -- GitLab