AusweisApp2/resources/qml/Governikus/PinView/+android/PinViewContent.qml

64 lines
1.7 KiB
QML
Raw Normal View History

2017-07-03 09:30:10 +02:00
import QtQuick 2.5
2017-12-20 14:54:05 +01:00
import Governikus.Global 1.0
2017-07-03 09:30:10 +02:00
Item {
2017-07-03 09:33:28 +02:00
readonly property int spacing: (height - pinIcon.height - pinHeader.height - pinDesc.height - govButton.height - Utils.dp(40)) / 3
2017-07-03 09:30:10 +02:00
Image {
id: pinIcon
2017-07-03 09:33:28 +02:00
height: parent.height * 0.25
2017-07-03 09:30:10 +02:00
width: height
anchors.top: parent.top
2017-07-03 09:33:28 +02:00
anchors.topMargin: spacing
2017-07-03 09:30:10 +02:00
anchors.horizontalCenter: parent.horizontalCenter
fillMode: Image.PreserveAspectFit
smooth: true
source: "qrc:///images/icon_Pin.svg"
}
Text {
id: pinHeader
2017-12-20 14:54:05 +01:00
text: qsTr("PIN Management") + settingsModel.translationTrigger
2017-07-03 09:30:10 +02:00
anchors.top: pinIcon.bottom
2017-07-03 09:33:28 +02:00
anchors.topMargin: spacing
2017-07-03 09:30:10 +02:00
anchors.horizontalCenter: parent.horizontalCenter
font.pixelSize: Constants.header_font_size
color: Constants.blue
}
Text {
id: pinDesc
2018-03-28 15:10:51 +02:00
color: Constants.secondary_text
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
anchors.margins: Utils.dp(10)
2017-07-03 09:30:10 +02:00
anchors.top: pinHeader.bottom
2017-07-03 09:33:28 +02:00
anchors.topMargin: Utils.dp(10)
2017-07-03 09:30:10 +02:00
anchors.horizontalCenter: parent.horizontalCenter
2017-12-20 14:54:05 +01:00
text: qsTr("You have the opportunity to change your transport PIN into a personal PIN. You can also change the PIN at any time or unblock the PIN using the personal unblocking key (PUK). The transport PIN and the PUK can be found in the letter sent to you by your competent authority.") + settingsModel.translationTrigger
2017-07-03 09:30:10 +02:00
font.pixelSize: Constants.normal_font_size
horizontalAlignment: Text.AlignHCenter
width: parent.width - Utils.dp(60)
wrapMode: Text.WordWrap
}
2017-12-20 14:54:05 +01:00
GButton {
2017-07-03 09:30:10 +02:00
id: govButton
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: Utils.dp(30)
2017-12-20 14:54:05 +01:00
text: qsTr("Change PIN now") + settingsModel.translationTrigger
2017-07-03 09:30:10 +02:00
onClicked: changePinModel.startWorkflow()
}
}