on 4ee9115 help sign in
unity8/qml/Components/DelayedLockscreen.qml
95 lines 3.0 kB history raw
1/*
2 * Copyright (C) 2013,2014 Canonical, Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
17import QtQuick 2.4
18import Ubuntu.Components 1.3
19import "../Components"
21Item {
22 id: root
24 property int delayMinutes
25 property bool alphaNumeric
27 signal entered(string passphrase) // unused
28 signal cancel() // unused
30 function clear(playAnimation) {}
31 function showText(text) {}
33 Column {
34 anchors.left: parent.left
35 anchors.right: parent.right
36 anchors.leftMargin: units.gu(4)
37 anchors.rightMargin: units.gu(4)
38 anchors.verticalCenter: parent.verticalCenter
39 spacing: units.gu(2)
41 Label {
42 id: deviceLockedLabel
43 objectName: "deviceLockedLabel"
44 anchors.left: parent.left
45 anchors.right: parent.right
46 horizontalAlignment: Text.AlignHCenter
47 wrapMode: Text.Wrap
48 fontSize: "x-large"
49 color: "#f3f3e7"
50 text: i18n.tr("Device Locked")
51 }
53 Item { // spacer
54 width: units.gu(1)
55 height: units.gu(1)
56 }
58 Label {
59 anchors.left: parent.left
60 anchors.right: parent.right
61 horizontalAlignment: Text.AlignHCenter
62 wrapMode: Text.Wrap
63 color: "#f3f3e7"
64 text: alphaNumeric ?
65 i18n.tr("You have been locked out due to too many failed passphrase attempts.") :
66 i18n.tr("You have been locked out due to too many failed passcode attempts.")
67 }
69 Label {
70 anchors.left: parent.left
71 anchors.right: parent.right
72 horizontalAlignment: Text.AlignHCenter
73 wrapMode: Text.Wrap
74 color: "#f3f3e7"
75 text: i18n.tr("Please wait %1 minute and then try again…",
76 "Please wait %1 minutes and then try again…",
77 root.delayMinutes).arg(root.delayMinutes)
78 }
80 Item { // spacer
81 width: units.gu(1)
82 height: units.gu(1)
83 }
85 Icon {
86 // It would be nice to use a less network-specific name,
87 // but this is the only lock icon we have.
88 name: "network-secure"
89 color: "#f3f3e7"
90 height: units.gu(4)
91 width: units.gu(4)
92 anchors.horizontalCenter: parent.horizontalCenter
93 }
94 }