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

64 lines
1.6 KiB
QML

import QtQuick 2.5
import Governikus.Global 1.0
Item {
readonly property int spacing: (height - pinHeader.height - pinDesc.height - pinIcon.height - govButton.height - Utils.dp(40)) / 3
Text {
id: pinHeader
text: qsTr("PIN Management") + settingsModel.translationTrigger
anchors.top: parent.top
anchors.topMargin: spacing
anchors.horizontalCenter: parent.horizontalCenter
font.pixelSize: Constants.header_font_size
color: Constants.blue
}
Text {
id: pinDesc
color: Constants.secondary_text
width: parent.width * 0.9
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
font.pixelSize: Constants.normal_font_size
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
anchors.top: pinHeader.bottom
anchors.topMargin: Utils.dp(10)
anchors.horizontalCenter: parent.horizontalCenter
}
Image {
id: pinIcon
height: parent.height * 0.25
width: height
anchors.top: pinDesc.bottom
anchors.topMargin: spacing
anchors.horizontalCenter: parent.horizontalCenter
fillMode: Image.PreserveAspectFit
smooth: true
source: "qrc:///images/icon_Pin.svg"
}
GButton {
id: govButton
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: Utils.dp(30)
text: qsTr("Change PIN now") + settingsModel.translationTrigger
onClicked: changePinModel.startWorkflow()
}
}