18 import Ubuntu.Components 0.1
19 import
"../Components"
23 height: highlightItem.height
25 property alias placeholderText: pinentryField.placeholderText
26 property string username:
""
28 signal entered(
string passphrase)
31 function clear(playAnimation) {
32 pinentryField.text =
"";
34 wrongPasswordAnimation.start();
36 pinentryField.focus =
false
44 anchors.centerIn: parent
45 color: Qt.rgba(0.1, 0.1, 0.1, 0.4)
46 border.color: Qt.rgba(0.4, 0.4, 0.4, 0.4)
47 border.width: units.dp(1)
52 objectName:
"greeterLabel"
57 margins: units.gu(1.5)
59 text: root.username.length > 0 ? i18n.tr(
"Hello %1").arg(root.username) : i18n.tr(
"Hello")
65 objectName:
"pinentryField"
67 horizontalCenter: parent.horizontalCenter
72 width: parent.width - units.gu(2)
73 echoMode: TextInput.Password
78 root.entered(pinentryField.text);
83 WrongPasswordAnimation {
84 id: wrongPasswordAnimation
85 objectName:
"wrongPasswordAnimation"