Browse Source

Use global palette

QGC4.4
DoinLakeFlyer 5 years ago
parent
commit
e356fc147c
  1. 3
      src/FlightMap/MapItems/MissionLineView.qml

3
src/FlightMap/MapItems/MissionLineView.qml

@ -7,7 +7,6 @@
* *
****************************************************************************/ ****************************************************************************/
import QtQuick 2.3 import QtQuick 2.3
import QtLocation 5.3 import QtLocation 5.3
import QtPositioning 5.3 import QtPositioning 5.3
@ -20,7 +19,7 @@ MapItemView {
property bool showSpecialVisual: false property bool showSpecialVisual: false
delegate: MapPolyline { delegate: MapPolyline {
line.width: 3 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 z: QGroundControl.zOrderWaypointLines
path: object && object.coordinate1.isValid && object.coordinate2.isValid ? [ object.coordinate1, object.coordinate2 ] : [] path: object && object.coordinate1.isValid && object.coordinate2.isValid ? [ object.coordinate1, object.coordinate2 ] : []
} }

Loading…
Cancel
Save