Commit 13bf81aa authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #3528 from DonLakeFlyer/PX4FM

PX4 Flight Mode: Fix label coloring
parents 935e1ca9 2d4d8805
......@@ -147,7 +147,7 @@ Item {
QGCLabel {
anchors.baseline: returnCombo.baseline
text: "Return switch:"
color: fact.value == 0 ? qgcPal.text : (controller.rcChannelValues[fact.value - 1] >= 1500 ? "yellow" : qgcPal.text)
color: parent.fact.value == 0 ? qgcPal.text : (controller.rcChannelValues[parent.fact.value - 1] >= 1500 ? "yellow" : qgcPal.text)
}
FactComboBox {
......@@ -166,7 +166,7 @@ Item {
QGCLabel {
anchors.baseline: killCombo.baseline
text: "Kill switch:"
color: fact.value == 0 ? qgcPal.text : (controller.rcChannelValues[fact.value - 1] >= 1500 ? "yellow" : qgcPal.text)
color: parent.fact.value == 0 ? qgcPal.text : (controller.rcChannelValues[parent.fact.value - 1] >= 1500 ? "yellow" : qgcPal.text)
}
FactComboBox {
......@@ -185,7 +185,7 @@ Item {
QGCLabel {
anchors.baseline: offboardCombo.baseline
text: "Offboard switch:"
color: fact.value == 0 ? qgcPal.text : (controller.rcChannelValues[fact.value - 1] >= 1500 ? "yellow" : qgcPal.text)
color: parent.fact.value == 0 ? qgcPal.text : (controller.rcChannelValues[parent.fact.value - 1] >= 1500 ? "yellow" : qgcPal.text)
}
FactComboBox {
......
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