Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | |
| 2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | |
| 3 <link rel="import" href="chrome://resources/html/polymer.html"> | |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm l"> | |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> | |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> | |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> | |
| 8 <link rel="import" href="/settings_shared_css.html"> | |
| 9 | |
| 10 <dom-module id="settings-fingerprint-list"> | |
| 11 <template> | |
| 12 <style include="settings-shared"> | |
| 13 .list-item { | |
| 14 border-bottom: 1px solid black; | |
| 15 display: flex; | |
| 16 } | |
| 17 | |
| 18 .list-item[index='0'] { | |
| 19 border-top: 1px solid black; | |
| 20 } | |
|
Dan Beam
2016/12/13 19:53:23
this is not the right color. we have a CSS variab
sammiequon
2016/12/13 23:33:33
The updated (but I don't think final) mocks have n
| |
| 21 | |
| 22 .warning-text { | |
| 23 font-style: italic; | |
| 24 } | |
| 25 </style> | |
| 26 | |
| 27 <div> | |
| 28 <div>$i18n{lockScreenRegisteredFingerprints}</div> | |
| 29 <iron-list id="fingerprintsList" items="[[fingerprints_]]"> | |
| 30 <template> | |
| 31 <div class="list-item" index$="[[index]]"> | |
| 32 <paper-input value="{{item.name}}"></paper-input> | |
|
Dan Beam
2016/12/13 19:53:23
why can't we just drop the {name:} stuff and just
sammiequon
2016/12/13 23:33:33
I was expecting the list to have more than just a
| |
| 33 <paper-icon-button icon="cr:delete" on-tap="onFingerprintDelete_"> | |
|
Dan Beam
2016/12/13 19:53:23
could this be <button is="paper-icon-button-light"
sammiequon
2016/12/13 23:33:33
Done.
| |
| 34 </paper-icon-button> | |
| 35 </div> | |
| 36 </template> | |
| 37 </iron-list> | |
| 38 <div class="settings-box first radio-indent"> | |
| 39 <paper-button is="action-link" on-tap="onAddFingerprint_" | |
|
Dan Beam
2016/12/13 19:53:23
what is this is="action-link" doing here?
sammiequon
2016/12/13 23:33:33
Done.
| |
| 40 disabled="[[!canAddNewFingerprint_(fingerprints_.length)]]"> | |
| 41 [[getFingerprintButtonText_(fingerprints_.length)]] | |
| 42 </paper-button> | |
| 43 </div> | |
| 44 <div class="warning-text"> | |
| 45 $i18n{lockScreenFingerprintWarning} | |
| 46 </div> | |
| 47 </div> | |
| 48 </template> | |
| 49 <script src="fingerprint_list.js"></script> | |
| 50 </dom-module> | |
| OLD | NEW |