Commit bc7c7542 authored by Yasen's avatar Yasen

Update QGCComboBox.qml

parent 782bc008
......@@ -30,6 +30,9 @@ ComboBox {
border.width: enabled ? 1 : 0
border.color: "#999"
}
/*! Adding the Combobox list item to the theme. */
delegate: ItemDelegate {
width: control.width
......@@ -38,10 +41,11 @@ ComboBox {
color: qgcPal.text
verticalAlignment: Text.AlignVCenter
}
background: Rectangle {
color: qgcPal.window
color: control.currentIndex === index ? qgcPal.buttonHighlight : qgcPal.button
}
}
highlighted: control.highlightedIndex === index
}
......@@ -49,6 +53,7 @@ ComboBox {
contentItem: Item {
implicitWidth: text.implicitWidth
implicitHeight: text.implicitHeight
QGCLabel {
id: text
anchors.verticalCenter: parent.verticalCenter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment