Browse Source

Updating the new QGC Combobox Items

Updating the items to be inline with the theme.
QGC4.4
Yasen 6 years ago
parent
commit
7417fb99f1
  1. 14
      src/QmlControls/QGCComboBox.qml

14
src/QmlControls/QGCComboBox.qml

@ -30,6 +30,20 @@ ComboBox { @@ -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 {

Loading…
Cancel
Save