2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
2020-06-04 13:00:17 +00:00
|
|
|
import "../imports"
|
2020-06-19 18:06:58 +00:00
|
|
|
import "../shared"
|
2020-06-03 19:49:47 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
id: slide
|
|
|
|
property string image: "img/chat@2x.jpg"
|
|
|
|
property string title: "Truly private communication"
|
|
|
|
property string description: "Chat over a peer-to-peer, encrypted network\n where messages can't be censored or hacked"
|
2020-06-25 13:23:17 +00:00
|
|
|
property bool isFirst: false
|
2020-06-03 19:49:47 +00:00
|
|
|
property bool isLast: false
|
|
|
|
|
|
|
|
Image {
|
|
|
|
id: img1
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.topMargin: 17
|
|
|
|
fillMode: Image.PreserveAspectFit
|
|
|
|
source: image
|
|
|
|
}
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-03 19:49:47 +00:00
|
|
|
id: txtTitle1
|
|
|
|
text: title
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 177
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 177
|
|
|
|
anchors.top: img1.bottom
|
|
|
|
anchors.topMargin: 44
|
|
|
|
font.letterSpacing: -0.2
|
|
|
|
font.weight: Font.Bold
|
|
|
|
lineHeight: 1
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
transformOrigin: Item.Center
|
|
|
|
font.bold: true
|
|
|
|
font.pixelSize: 22
|
|
|
|
font.kerning: true
|
|
|
|
}
|
|
|
|
|
2020-06-25 13:23:17 +00:00
|
|
|
Button {
|
|
|
|
id: btnPrevious1
|
|
|
|
width: 40
|
|
|
|
height: 40
|
|
|
|
anchors.top: txtDesc1.top
|
|
|
|
anchors.bottomMargin: -2
|
|
|
|
anchors.bottom: txtDesc1.bottom
|
|
|
|
anchors.topMargin: -2
|
|
|
|
anchors.right: txtDesc1.left
|
|
|
|
anchors.rightMargin: 32
|
|
|
|
onClicked: vwOnboarding.currentIndex--
|
|
|
|
visible: !isFirst
|
|
|
|
background: Rectangle {
|
|
|
|
id: rctPrevious1
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.grey
|
2020-06-25 13:23:17 +00:00
|
|
|
border.width: 0
|
|
|
|
radius: 50
|
|
|
|
|
|
|
|
SVGImage {
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
source: "img/next.svg"
|
|
|
|
width: 10
|
|
|
|
height: 10
|
|
|
|
mirror: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-03 19:49:47 +00:00
|
|
|
id: txtDesc1
|
|
|
|
x: 772
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.darkGrey
|
2020-06-03 19:49:47 +00:00
|
|
|
text: description
|
|
|
|
font.weight: Font.Normal
|
|
|
|
style: Text.Normal
|
|
|
|
anchors.horizontalCenterOffset: 0
|
|
|
|
anchors.top: txtTitle1.bottom
|
|
|
|
anchors.topMargin: 14
|
|
|
|
font.bold: true
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
font.pixelSize: 15
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
id: btnNext1
|
|
|
|
width: 40
|
|
|
|
height: 40
|
|
|
|
anchors.top: txtDesc1.top
|
|
|
|
anchors.bottomMargin: -2
|
|
|
|
anchors.bottom: txtDesc1.bottom
|
|
|
|
anchors.topMargin: -2
|
|
|
|
anchors.left: txtDesc1.right
|
|
|
|
anchors.leftMargin: 32
|
|
|
|
onClicked: vwOnboarding.currentIndex++
|
|
|
|
visible: !isLast
|
|
|
|
background: Rectangle {
|
|
|
|
id: rctNext1
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.grey
|
2020-06-03 19:49:47 +00:00
|
|
|
border.width: 0
|
|
|
|
radius: 50
|
|
|
|
|
2020-06-25 13:23:17 +00:00
|
|
|
SVGImage {
|
2020-06-03 19:49:47 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
source: "img/next.svg"
|
2020-06-25 13:23:17 +00:00
|
|
|
width: 10
|
|
|
|
height: 10
|
2020-06-03 19:49:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;autoSize:true;height:600;width:800}
|
|
|
|
}
|
|
|
|
##^##*/
|