Browse Source

Merge pull request #7658 from yasendimov/pr-combobox_fix

Update QGCComboBox.qml
QGC4.4
Gus Grubba 6 years ago committed by GitHub
parent
commit
07d286c93a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/QmlControls/QGCComboBox.qml

8
src/QmlControls/QGCComboBox.qml

@ -26,7 +26,7 @@ ComboBox { @@ -26,7 +26,7 @@ ComboBox {
background: Rectangle {
implicitWidth: ScreenTools.implicitComboBoxWidth
implicitHeight: ScreenTools.implicitComboBoxHeight
color: qgcPal.textField
color: qgcPal.window
border.width: enabled ? 1 : 0
border.color: "#999"
}
@ -37,8 +37,8 @@ ComboBox { @@ -37,8 +37,8 @@ ComboBox {
width: control.width
contentItem: Text {
text: modelData
color: qgcPal.text
text: textRole ? modelData[textRole] : modelData
color: control.currentIndex === index ? qgcPal.buttonHighlightText : qgcPal.buttonText
verticalAlignment: Text.AlignVCenter
}
@ -59,7 +59,7 @@ ComboBox { @@ -59,7 +59,7 @@ ComboBox {
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: centeredLabel ? parent.horizontalCenter : undefined
text: control.currentText
color: qgcPal.textFieldText
color: qgcPal.text
}
}
}

Loading…
Cancel
Save