OLD | NEW |
1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> | 1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> |
2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
3 <link rel="import" href="chrome://resources/html/polymer.html"> | 3 <link rel="import" href="chrome://resources/html/polymer.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> |
5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> |
6 <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-button/paper-butt
on.html"> |
7 <link rel="import" href="/icons.html"> | 7 <link rel="import" href="/icons.html"> |
8 <link rel="import" href="/settings_shared_css.html"> | 8 <link rel="import" href="/settings_shared_css.html"> |
9 | 9 |
10 <dom-module id="settings-display-overscan-dialog"> | 10 <dom-module id="settings-display-overscan-dialog"> |
11 <template> | 11 <template> |
12 <style include="settings-shared"> | 12 <style include="settings-shared"> |
13 .label { | 13 .subtitle { |
14 margin: 10px 0; | 14 margin-top: 10px; |
15 } | 15 } |
| 16 |
| 17 .instructions { |
| 18 color: var(--paper-grey-600); |
| 19 margin-top: 4px; |
| 20 } |
| 21 |
16 .details { | 22 .details { |
17 margin: 40px; | 23 margin: 40px; |
18 } | 24 } |
| 25 |
19 iron-icon { | 26 iron-icon { |
20 --iron-icon-fill-color: white; | 27 --iron-icon-fill-color: white; |
21 background: black; | 28 background: black; |
22 margin: 2px; | 29 margin: 5px; |
23 } | 30 } |
| 31 |
24 #move > div { | 32 #move > div { |
25 color: grey; | 33 color: grey; |
26 font-size: 150%; | 34 font-size: 150%; |
27 } | 35 } |
| 36 |
28 #move > div.shift { | 37 #move > div.shift { |
29 background: black; | 38 background: black; |
30 color: white; | 39 color: white; |
31 font-size: 100%; | 40 font-size: 100%; |
32 margin: 0 8px; | 41 margin: 0 8px; |
33 padding: 4px 8px 0; | 42 padding: 4px 8px 0; |
34 } | 43 } |
35 </style> | 44 </style> |
36 <dialog is="cr-dialog" id="dialog" on-close="close"> | 45 <dialog is="cr-dialog" id="dialog" on-close="close"> |
37 <div class="title">$i18n{displayOverscanPageTitle}</div> | 46 <div class="title">$i18n{displayOverscanPageTitle}</div> |
38 <div class="body"> | 47 <div class="body"> |
39 <div class="label self-start" >$i18n{displayOverscanInstructions}</div> | 48 <div class="subtitle" >$i18n{displayOverscanSubtitle}</div> |
| 49 <div class="instructions" >$i18n{displayOverscanInstructions}</div> |
40 <div class="details layout horizontal around-justified self-stretch"> | 50 <div class="details layout horizontal around-justified self-stretch"> |
41 <div class="layout vertical center"> | 51 <div class="layout vertical center"> |
42 <div class="layout horizontal"> | 52 <div class="layout horizontal"> |
43 <iron-icon icon="cr:expand-less"></iron-icon> | 53 <iron-icon icon="cr:expand-less"></iron-icon> |
44 </div> | 54 </div> |
45 <div class="layout horizontal"> | 55 <div class="layout horizontal"> |
46 <iron-icon icon="settings:chevron-left"></iron-icon> | 56 <iron-icon icon="settings:chevron-left"></iron-icon> |
47 <iron-icon icon="cr:expand-more"></iron-icon> | 57 <iron-icon icon="cr:expand-more"></iron-icon> |
48 <iron-icon icon="cr:chevron-right"></iron-icon> | 58 <iron-icon icon="cr:chevron-right"></iron-icon> |
49 </div> | 59 </div> |
50 <div class="label" >$i18n{displayOverscanResize}</div> | 60 <div class="label" >$i18n{displayOverscanResize}</div> |
51 </div> | 61 </div> |
52 <div class="layout vertical center"> | 62 <div class="layout vertical center"> |
53 <div class="layout vertical center-justified flex"> | 63 <div class="layout vertical center-justified flex"> |
54 <div id="move" class="layout horizontal"> | 64 <div id="move" class="layout horizontal"> |
55 <!-- TODO(stevenjb): Localize 'shift' for other keyboards --> | 65 <!-- TODO(stevenjb): Localize 'shift' for other keyboards --> |
56 <!-- crbug.com/614827 --> | 66 <!-- crbug.com/614827 --> |
57 <div>( + </div><div class="shift">shift</div><div>)</div> | 67 <div>( + </div><div class="shift">shift</div><div>)</div> |
58 </div> | 68 </div> |
59 </div> | 69 </div> |
60 <div class="label">$i18n{displayOverscanPosition}</div> | 70 <div class="label">$i18n{displayOverscanPosition}</div> |
61 </div> | 71 </div> |
62 </div> | 72 </div> |
63 </div> | 73 </div> |
64 <div class="button-container"> | 74 <div class="button-container"> |
65 <paper-button class="secondary-button" on-tap="onResetTap_"> | 75 <paper-button id="reset" class="secondary-button" on-tap="onResetTap_"> |
66 $i18n{displayOverscanReset} | 76 $i18n{displayOverscanReset} |
67 </paper-button> | 77 </paper-button> |
68 <paper-button class="primary-button" on-tap="onSaveTap_"> | 78 <paper-button class="primary-button" on-tap="onSaveTap_"> |
69 $i18n{displayOverscanSave} | 79 $i18n{ok} |
70 </paper-button> | 80 </paper-button> |
71 </div> | 81 </div> |
72 </dialog> | 82 </dialog> |
73 </template> | 83 </template> |
74 <script src="display_overscan_dialog.js"></script> | 84 <script src="display_overscan_dialog.js"></script> |
75 </dom-module> | 85 </dom-module> |
OLD | NEW |