Make confirmation a dialog
This commit is contained in:
parent
96f2b70f05
commit
96cbdd4b64
1 changed files with 6 additions and 22 deletions
|
@ -23,7 +23,7 @@ import QtQuick 2.0
|
||||||
import 'common/constants.js' as Constants
|
import 'common/constants.js' as Constants
|
||||||
import 'icons/icons.js' as Icons
|
import 'icons/icons.js' as Icons
|
||||||
|
|
||||||
SlidePage {
|
Dialog {
|
||||||
id: confirmation
|
id: confirmation
|
||||||
|
|
||||||
property alias title: header.title
|
property alias title: header.title
|
||||||
|
@ -31,6 +31,8 @@ SlidePage {
|
||||||
property alias color: header.color
|
property alias color: header.color
|
||||||
property var callback: undefined
|
property var callback: undefined
|
||||||
|
|
||||||
|
contentHeight: icon.height + header.height + confirmLabel.height + 50 * pgst.scalef
|
||||||
|
|
||||||
SlidePageHeader {
|
SlidePageHeader {
|
||||||
id: header
|
id: header
|
||||||
color: Constants.colors.destructive
|
color: Constants.colors.destructive
|
||||||
|
@ -39,7 +41,7 @@ SlidePage {
|
||||||
|
|
||||||
PIcon {
|
PIcon {
|
||||||
id: icon
|
id: icon
|
||||||
size: 300
|
size: 200
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
color: header.color
|
color: header.color
|
||||||
|
|
||||||
|
@ -55,6 +57,8 @@ SlidePage {
|
||||||
}
|
}
|
||||||
|
|
||||||
PLabel {
|
PLabel {
|
||||||
|
id: confirmLabel
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
horizontalCenter: parent.horizontalCenter
|
horizontalCenter: parent.horizontalCenter
|
||||||
top: icon.bottom
|
top: icon.bottom
|
||||||
|
@ -64,24 +68,4 @@ SlidePage {
|
||||||
text: 'Tap to confirm'
|
text: 'Tap to confirm'
|
||||||
color: header.color
|
color: header.color
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
|
||||||
anchors {
|
|
||||||
horizontalCenter: parent.horizontalCenter
|
|
||||||
bottom: parent.bottom
|
|
||||||
margins: 60 * pgst.scalef
|
|
||||||
}
|
|
||||||
|
|
||||||
spacing: 30 * pgst.scalef
|
|
||||||
|
|
||||||
PLabel {
|
|
||||||
text: 'Swipe right to cancel'
|
|
||||||
color: Constants.colors.text
|
|
||||||
}
|
|
||||||
|
|
||||||
PIcon {
|
|
||||||
color: Constants.colors.text
|
|
||||||
icon: Icons.arrow_right
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue