Commit d33fda65 authored by Don Gagne's avatar Don Gagne

Use QGCMapPalette for text color

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