Commit 81908093 authored by dogmaphobic's avatar dogmaphobic

Making waypoints (orange) colors use palette so it can be changed in one single place.

parent 1388ac3a
......@@ -387,7 +387,7 @@ QGCView {
MapPolyline {
id: homePositionLine
line.width: 3
line.color: "orange"
line.color: _qgcPal.mapButtonHighlight
z: 1
property var homePositionCoordinate: _homePositionCoordinate
......@@ -421,7 +421,7 @@ QGCView {
delegate:
MapPolyline {
line.width: 3
line.color: "orange"
line.color: _qgcPal.mapButtonHighlight
z: 1
path: [
......
......@@ -3,6 +3,7 @@ import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
import QGroundControl.ScreenTools 1.0
import QGroundControl.Palette 1.0
Rectangle {
property alias label: _label.text
......@@ -10,12 +11,14 @@ Rectangle {
signal clicked
QGCPalette { id: qgcPal }
width: ScreenTools.defaultFontPixelHeight * 1.5
height: width
radius: width / 2
border.width: 2
border.color: "white"
color: isCurrentItem ? "green" : "orange"
color: isCurrentItem ? "green" : qgcPal.mapButtonHighlight
MouseArea {
anchors.fill: parent
......
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