on 804cd80 help sign in
unity8/qml/Components/DelayedLockscreen.qml
92 lines 2.9 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.0
18import Ubuntu.Components 0.1
19import "../Components"
21Item {
22 id: root
23 anchors.fill: parent
25 property int delayMinutes
26 property bool alphaNumeric
28 function clear(playAnimation) {}
30 Column {
31 anchors.left: parent.left
32 anchors.right: parent.right
33 anchors.leftMargin: units.gu(4)
34 anchors.rightMargin: units.gu(4)
35 anchors.verticalCenter: parent.verticalCenter
36 spacing: units.gu(2)
38 Label {
39 id: deviceLockedLabel
40 objectName: "deviceLockedLabel"
41 anchors.left: parent.left
42 anchors.right: parent.right
43 horizontalAlignment: Text.AlignHCenter
44 wrapMode: Text.Wrap
45 fontSize: "x-large"
46 color: "#f3f3e7"
47 text: i18n.tr("Device Locked")
48 }
50 Item { // spacer
51 width: units.gu(1)
52 height: units.gu(1)
53 }
55 Label {
56 anchors.left: parent.left
57 anchors.right: parent.right
58 horizontalAlignment: Text.AlignHCenter
59 wrapMode: Text.Wrap
60 color: "#f3f3e7"
61 text: alphaNumeric ?
62 i18n.tr("You have been locked out due to too many failed passphrase attempts.") :
63 i18n.tr("You have been locked out due to too many failed passcode attempts.")
64 }
66 Label {
67 anchors.left: parent.left
68 anchors.right: parent.right
69 horizontalAlignment: Text.AlignHCenter
70 wrapMode: Text.Wrap
71 color: "#f3f3e7"
72 text: i18n.tr("Please wait %1 minute and then try again…",
73 "Please wait %1 minutes and then try again…",
74 root.delayMinutes).arg(root.delayMinutes)
75 }
77 Item { // spacer
78 width: units.gu(1)
79 height: units.gu(1)
80 }
82 Icon {
83 // It would be nice to use a less network-specific name,
84 // but this is the only lock icon we have.
85 name: "network-secure"
86 color: "#f3f3e7"
87 height: units.gu(4)
88 width: units.gu(4)
89 anchors.horizontalCenter: parent.horizontalCenter
90 }
91 }