Commit d33fda65 authored by Don Gagne's avatar Don Gagne

Use QGCMapPalette for text color

parent 57fa325f
......@@ -212,6 +212,8 @@ Item {
anchors.left: parent.left
anchors.bottom: parent.bottom
height: availableHeight
property bool isBackgroundDark: root.isBackgroundDark
}
//-- Virtual Joystick
......
......@@ -41,6 +41,8 @@ Item {
property bool _isInstrumentVisible: QGroundControl.loadBoolGlobalSetting(_InstrumentVisibleKey, true)
QGCMapPalette { id: mapPal; lightColors: !isBackgroundDark }
function getGadgetWidth() {
if(ScreenTools.isMobile) {
if(ScreenTools.isTinyScreen)
......@@ -71,6 +73,7 @@ Item {
visible: !object.coordinateValid
text: "No GPS Lock for Vehicle #" + object.id
z: QGroundControl.zOrderMapItems - 2
color: mapPal.text
}
}
}
......
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