|
|
|
@ -18,13 +18,12 @@ import QGroundControl.Palette 1.0
@@ -18,13 +18,12 @@ import QGroundControl.Palette 1.0
|
|
|
|
|
/// Guided actions confirmation dialog |
|
|
|
|
Rectangle { |
|
|
|
|
id: _root |
|
|
|
|
border.color: qgcPal.alertBorder |
|
|
|
|
border.width: 1 |
|
|
|
|
width: confirmColumn.width + (_margins * 4) |
|
|
|
|
height: confirmColumn.height + (_margins * 4) |
|
|
|
|
radius: ScreenTools.defaultFontPixelHeight / 2 |
|
|
|
|
color: qgcPal.alertBackground |
|
|
|
|
opacity: 0.9 |
|
|
|
|
color: qgcPal.window |
|
|
|
|
border.color: _emergencyAction ? "red" : qgcPal.windowShade |
|
|
|
|
border.width: _emergencyAction ? 4 : 1 |
|
|
|
|
z: guidedController.z |
|
|
|
|
visible: false |
|
|
|
|
|
|
|
|
@ -36,7 +35,8 @@ Rectangle {
@@ -36,7 +35,8 @@ Rectangle {
|
|
|
|
|
property var actionData |
|
|
|
|
property bool hideTrigger: false |
|
|
|
|
|
|
|
|
|
property real _margins: ScreenTools.defaultFontPixelWidth |
|
|
|
|
property real _margins: ScreenTools.defaultFontPixelWidth |
|
|
|
|
property bool _emergencyAction: action === guidedController.actionEmergencyStop |
|
|
|
|
|
|
|
|
|
onHideTriggerChanged: { |
|
|
|
|
if (hideTrigger) { |
|
|
|
@ -78,7 +78,6 @@ Rectangle {
@@ -78,7 +78,6 @@ Rectangle {
|
|
|
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
|
id: titleText |
|
|
|
|
color: qgcPal.alertText |
|
|
|
|
anchors.left: slider.left |
|
|
|
|
anchors.right: slider.right |
|
|
|
|
horizontalAlignment: Text.AlignHCenter |
|
|
|
@ -87,7 +86,6 @@ Rectangle {
@@ -87,7 +86,6 @@ Rectangle {
|
|
|
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
|
id: messageText |
|
|
|
|
color: qgcPal.alertText |
|
|
|
|
anchors.left: slider.left |
|
|
|
|
anchors.right: slider.right |
|
|
|
|
horizontalAlignment: Text.AlignHCenter |
|
|
|
@ -127,7 +125,7 @@ Rectangle {
@@ -127,7 +125,7 @@ Rectangle {
|
|
|
|
|
sourceSize.height: width |
|
|
|
|
source: "/res/XDelete.svg" |
|
|
|
|
fillMode: Image.PreserveAspectFit |
|
|
|
|
color: qgcPal.alertText |
|
|
|
|
color: qgcPal.text |
|
|
|
|
QGCMouseArea { |
|
|
|
|
fillItem: parent |
|
|
|
|
onClicked: { |
|
|
|
|