Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: chrome/browser/resources/settings/people_page/quick_unlock_setup_pin.html

Issue 2208473007: Rework quick unlock settings to follow new specs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fix closure (bad merge) Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/html/i18n_behavior.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
4 <link rel="import" href="/people_page/pin_keyboard.html">
5 <link rel="import" href="/people_page/quick_unlock_password_detect_behavior.html ">
6 <link rel="import" href="/route.html">
7 <link rel="import" href="/settings_page/settings_section.html">
8 <link rel="import" href="/settings_shared_css.html">
9
10 <dom-module id="settings-quick-unlock-setup-pin">
11 <template>
12 <style include="settings-shared"></style>
13 <style>
14 iron-icon {
15 -webkit-margin-end: var(--iron-icon-spacing);
16 }
17
18 .warning {
19 color: var(--paper-grey-500);
20 }
21
22 .warning > iron-icon {
23 --iron-icon-fill-color: var(--paper-grey-500);
24 }
25
26 .error {
27 color: var(--paper-red-500);
28 }
29
30 .error > iron-icon {
31 --iron-icon-fill-color: var(--paper-red-500);
32 }
33
34 .align-center {
35 justify-content: center;
36 }
37
38 .align-end {
39 justify-content: flex-end;
40 }
41 </style>
42
43 <div>
44 <!-- Title; only shown if warning/error is hidden. -->
45 <div class="settings-box" hidden$="[[hasProblem_(problemMessage_)]]">
46 <span>[[getTitleMessage_(isConfirmStep_)]]</span>
47 </div>
48
49 <!-- Warning/error; only shown if title is hidden. -->
50 <div class$="[[problemClass_]] settings-box"
51 hidden$="[[!hasProblem_(problemMessage_)]]">
52 <iron-icon icon="icons:warning"></iron-icon>
53 <span>[[problemMessage_]]</span>
54 </div>
55
56 <!-- Pin keyboard -->
57 <div class="align-center settings-box continuation">
58 <pin-keyboard on-pin-change="onPinChange_" on-submit="onPinSubmit_"
59 value="{{pinKeyboardValue_}}"></pin-keyboard>
60 </div>
61
62 <div class="align-end settings-box">
63 <paper-button class="cancel-button" on-tap="resetState_"
64 hidden$="[[!isConfirmStep_]]">
65 $i18n{quickUnlockConfigurePinBackButton}
66 </paper-button>
67
68 <paper-button class="action-button" on-tap="onPinSubmit_"
69 disabled$="[[!enableSubmit_]]">
70 <span>[[getContinueMessage_(isConfirmStep_)]]</span>
71 </paper-button>
72 </div>
73
74 </div>
75 </template>
76
77 <script src="quick_unlock_setup_pin.js"></script>
78 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698