diff --git a/src/QmlControls/QGCComboBox.qml b/src/QmlControls/QGCComboBox.qml index 1cf7af2c3e37423c2624e85a2148ce0aafc1f9b8..1fdc4632ddf973bc240440787a7966f9c1ba56bd 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 {