~attente/unity8/1634508

« back to all changes in this revision

Viewing changes to qml/Greeter/DelayedLockscreen.qml

  • Committer: Bileto Bot
  • Author(s): Michael Terry
  • Date: 2016-09-22 07:39:48 UTC
  • mfrom: (2552.7.2 greeter-no-lockscreen)
  • Revision ID: ci-train-bot@canonical.com-20160922073948-c2h0juru3m7tn135
Switch from lockscreen PIN pad to a passcode entry box that uses the OSK.

Approved by: Albert Astals Cid

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2013,2014 Canonical, Ltd.
 
2
 * Copyright (C) 2013-2016 Canonical, Ltd.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU General Public License as published by
16
16
 
17
17
import QtQuick 2.4
18
18
import Ubuntu.Components 1.3
19
 
import "../Components"
20
19
 
21
20
Item {
22
21
    id: root
24
23
    property int delayMinutes
25
24
    property bool alphaNumeric
26
25
 
27
 
    signal entered(string passphrase) // unused
28
 
    signal cancel() // unused
29
 
 
30
 
    function clear(playAnimation) {}
31
 
    function showText(text) {}
32
 
 
33
26
    Column {
34
27
        anchors.left: parent.left
35
28
        anchors.right: parent.right
46
39
            horizontalAlignment: Text.AlignHCenter
47
40
            wrapMode: Text.Wrap
48
41
            fontSize: "x-large"
49
 
            color: "#f3f3e7"
 
42
            color: "white"
50
43
            text: i18n.tr("Device Locked")
51
44
        }
52
45
 
60
53
            anchors.right: parent.right
61
54
            horizontalAlignment: Text.AlignHCenter
62
55
            wrapMode: Text.Wrap
63
 
            color: "#f3f3e7"
 
56
            color: "white"
64
57
            text: alphaNumeric ?
65
58
                  i18n.tr("You have been locked out due to too many failed passphrase attempts.") :
66
59
                  i18n.tr("You have been locked out due to too many failed passcode attempts.")
71
64
            anchors.right: parent.right
72
65
            horizontalAlignment: Text.AlignHCenter
73
66
            wrapMode: Text.Wrap
74
 
            color: "#f3f3e7"
 
67
            color: "white"
75
68
            text: i18n.tr("Please wait %1 minute and then try again…",
76
69
                          "Please wait %1 minutes and then try again…",
77
70
                          root.delayMinutes).arg(root.delayMinutes)
83
76
        }
84
77
 
85
78
        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"
 
79
            name: "lock"
 
80
            color: "white"
90
81
            height: units.gu(4)
91
82
            width: units.gu(4)
92
83
            anchors.horizontalCenter: parent.horizontalCenter