diff --git a/src/FlightMap/MapItems/MissionLineView.qml b/src/FlightMap/MapItems/MissionLineView.qml index 447e611d60638c0374f215d86f25ae6ae6ff3045..c8945bb7e59d3dd5aa80afd3c6fb8d4dd5f05ead 100644 --- a/src/FlightMap/MapItems/MissionLineView.qml +++ b/src/FlightMap/MapItems/MissionLineView.qml @@ -7,7 +7,6 @@ * ****************************************************************************/ - import QtQuick 2.3 import QtLocation 5.3 import QtPositioning 5.3 @@ -20,7 +19,7 @@ MapItemView { property bool showSpecialVisual: false delegate: MapPolyline { line.width: 3 - line.color: object && showSpecialVisual && object.specialVisual ? "green" : "#be781c" // Hack, can't get palette to work in here + line.color: object && showSpecialVisual && object.specialVisual ? "green" : QGroundControl.globalPalette.mapMissionTrajectory z: QGroundControl.zOrderWaypointLines path: object && object.coordinate1.isValid && object.coordinate2.isValid ? [ object.coordinate1, object.coordinate2 ] : [] }