diff --git a/src/QtLocationPlugin/QMLControl/OfflineMap.qml b/src/QtLocationPlugin/QMLControl/OfflineMap.qml index cc8568ea5db5dc0ea6f985301f14f4b5c37c732b..e0f88e9dfcfe1f1c6873c2f59b95d68b60208f02 100644 --- a/src/QtLocationPlugin/QMLControl/OfflineMap.qml +++ b/src/QtLocationPlugin/QMLControl/OfflineMap.qml @@ -36,7 +36,7 @@ import QGroundControl.Palette 1.0 Rectangle { id: _offlineMapRoot - color: __qgcPal.window + color: qgcPal.window anchors.fill: parent anchors.margins: ScreenTools.defaultFontPixelWidth @@ -59,6 +59,8 @@ Rectangle { readonly property real minZoomLevel: 3 readonly property real maxZoomLevel: 20 + QGCPalette { id: qgcpal } + Component.onCompleted: { QGroundControl.mapEngineManager.loadTileSets() updateMap() @@ -161,7 +163,7 @@ Rectangle { id: _offlineMapTopRect width: parent.width height: labelTitle.height + ScreenTools.defaultFontPixelHeight - color: __qgcPal.window + color: qgcPal.window anchors.top: parent.top Row { spacing: ScreenTools.defaultFontPixelHeight * 2 @@ -240,7 +242,7 @@ Rectangle { //-- Offline Map Definition Rectangle { id: _mapView - color: __qgcPal.window + color: qgcPal.window width: parent.width anchors.top: _offlineMapTopRect.bottom anchors.bottom: parent.bottom @@ -251,7 +253,7 @@ Rectangle { width: parent.width anchors.top: parent.top anchors.bottom: bottomRect.top - color: (__qgcPal.globalTheme === QGCPalette.Light) ? "black" : "#98aca4" + color: (qgcPal.globalTheme === QGCPalette.Light) ? "black" : "#98aca4" Map { id: _map @@ -332,7 +334,7 @@ Rectangle { id: bottomRect width: parent.width height: _controlRow.height + (ScreenTools.defaultFontPixelHeight * 2) - color: __qgcPal.window + color: qgcPal.window anchors.bottom: parent.bottom Row { id: _controlRow @@ -621,7 +623,7 @@ Rectangle { } Rectangle { id: _infoView - color: __qgcPal.windowShade + color: qgcPal.windowShade width: parent.width anchors.top: _offlineMapTopRect.bottom anchors.bottom: parent.bottom @@ -644,7 +646,7 @@ Rectangle { Rectangle { width: infoWidth height: nameLabel.height + (ScreenTools.defaultFontPixelHeight * 2) - color: __qgcPal.window + color: qgcPal.window radius: ScreenTools.defaultFontPixelHeight * 0.5 anchors.horizontalCenter: parent.horizontalCenter QGCLabel { @@ -663,7 +665,7 @@ Rectangle { id: infoRect width: infoWidth height: infoGrid.height + (ScreenTools.defaultFontPixelHeight * 4) - color: __qgcPal.window + color: qgcPal.window radius: ScreenTools.defaultFontPixelHeight * 0.5 anchors.horizontalCenter: parent.horizontalCenter GridLayout { @@ -804,7 +806,7 @@ Rectangle { } Rectangle { id: _optionsView - color: __qgcPal.windowShade + color: qgcPal.windowShade width: parent.width anchors.top: _offlineMapTopRect.bottom anchors.bottom: parent.bottom @@ -834,7 +836,7 @@ Rectangle { Rectangle { width: infoWidth height: optionsLabel.height + (ScreenTools.defaultFontPixelHeight * 2) - color: __qgcPal.window + color: qgcPal.window radius: ScreenTools.defaultFontPixelHeight * 0.5 anchors.horizontalCenter: parent.horizontalCenter QGCLabel { @@ -848,7 +850,7 @@ Rectangle { id: optionsRect width: optionsGrid.width + (ScreenTools.defaultFontPixelWidth * 4) height: optionsGrid.height + (ScreenTools.defaultFontPixelHeight * 4) - color: __qgcPal.window + color: qgcPal.window radius: ScreenTools.defaultFontPixelHeight * 0.5 anchors.horizontalCenter: parent.horizontalCenter GridLayout { @@ -890,7 +892,7 @@ Rectangle { Layout.columnSpan: 2 Layout.fillWidth: true implicitHeight: 1 - color: __qgcPal.text + color: qgcPal.text } QGCLabel { text: "MapBox Access Token" diff --git a/src/ui/preferences/LinkSettings.qml b/src/ui/preferences/LinkSettings.qml index ae92e3073465278f728399b1dd0315b3cbe24e13..12e05a20c8f15b58f69375247081af938ae3f737 100644 --- a/src/ui/preferences/LinkSettings.qml +++ b/src/ui/preferences/LinkSettings.qml @@ -32,7 +32,7 @@ import QGroundControl.Palette 1.0 Rectangle { id: _linkRoot - color: __qgcPal.window + color: qgcPal.window anchors.fill: parent anchors.margins: ScreenTools.defaultFontPixelWidth @@ -176,7 +176,7 @@ Rectangle { Component { id: commSettings Rectangle { - color: __qgcPal.window + color: qgcPal.window anchors.fill: parent Component.onCompleted: { // If editing, create copy for editing