Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 2 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dialog/paper-dial og.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dialog/paper-dial og.html"> |
| 7 <link rel="import" href="chrome://md-settings/controls/settings_checkbox.html"> | 7 <link rel="import" href="chrome://md-settings/controls/settings_checkbox.html"> |
| 8 <link rel="import" href="chrome://md-settings/people_page/sync_page.html"> | 8 <link rel="import" href="chrome://md-settings/people_page/sync_page.html"> |
| 9 <link rel="import" href="chrome://md-settings/people_page/profile_info_browser_p roxy.html"> | 9 <link rel="import" href="chrome://md-settings/people_page/profile_info_browser_p roxy.html"> |
| 10 <link rel="import" href="chrome://md-settings/people_page/sync_browser_proxy.htm l"> | 10 <link rel="import" href="chrome://md-settings/people_page/sync_browser_proxy.htm l"> |
| 11 <link rel="import" href="chrome://md-settings/settings_page/settings_animated_pa ges.html"> | 11 <link rel="import" href="chrome://md-settings/settings_page/settings_animated_pa ges.html"> |
| 12 <link rel="import" href="chrome://md-settings/settings_page/settings_subpage.htm l"> | 12 <link rel="import" href="chrome://md-settings/settings_page/settings_subpage.htm l"> |
| 13 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> | 13 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> |
| 14 | 14 |
| 15 <if expr="chromeos"> | 15 <if expr="chromeos"> |
| 16 <link rel="import" href="chrome://md-settings/people_page/change_picture.html"> | 16 <link rel="import" href="chrome://md-settings/people_page/change_picture.html"> |
| 17 <link rel="import" href="chrome://md-settings/people_page/pin_keyboard.html"> | 17 <link rel="import" href="chrome://md-settings/people_page/pin_keyboard.html"> |
| 18 <link rel="import" href="chrome://md-settings/people_page/easy_unlock_browser_pr oxy.html"> | 18 <link rel="import" href="chrome://md-settings/people_page/easy_unlock_browser_pr oxy.html"> |
| 19 <link rel="import" href="chrome://md-settings/people_page/easy_unlock_turn_off_d ialog.html"> | 19 <link rel="import" href="chrome://md-settings/people_page/easy_unlock_turn_off_d ialog.html"> |
| 20 <link rel="import" href="chrome://md-settings/people_page/users_page.html"> | 20 <link rel="import" href="chrome://md-settings/people_page/users_page.html"> |
| 21 </if> | 21 </if> |
| 22 <if expr="not chromeos"> | 22 <if expr="not chromeos"> |
| 23 <link rel="import" href="chrome://md-settings/people_page/manage_profile.html"> | 23 <link rel="import" href="chrome://md-settings/people_page/manage_profile.html"> |
| 24 </if> | 24 </if> |
| 25 | 25 |
| 26 <dom-module id="settings-people-page"> | 26 <dom-module id="settings-people-page"> |
| 27 <template> | 27 <template> |
| 28 <style include="settings-shared"> | 28 <style include="settings-shared"> |
| 29 setting-box.middle { | |
| 30 /* Per spec, middle text is indented 20px in this section. */ | |
| 31 -webkit-margin-start: 20px; | |
| 32 } | |
| 33 | |
| 29 #profile-icon { | 34 #profile-icon { |
| 30 -webkit-margin-end: 4px; | |
| 31 border-radius: 20px; | 35 border-radius: 20px; |
| 32 height: 40px; | 36 height: 40px; |
| 33 object-fit: cover; | 37 object-fit: cover; |
| 34 vertical-align: middle; | 38 vertical-align: middle; |
| 35 width: 40px; | 39 width: 40px; |
| 36 } | 40 } |
| 37 | 41 |
| 38 #profile-icon:hover, | 42 #profile-icon:hover, |
| 39 #activity-controls:hover { | 43 #activity-controls:hover { |
| 40 cursor: pointer; | 44 cursor: pointer; |
| 41 } | 45 } |
| 42 | 46 |
| 43 <if expr="not chromeos"> | 47 <if expr="not chromeos"> |
| 44 #profile-name:hover { | 48 #profile-name:hover { |
| 45 cursor: pointer; | 49 cursor: pointer; |
| 46 } | 50 } |
| 47 </if> | 51 </if> |
| 52 | |
| 53 #sync-icon { | |
| 54 margin: 0 10px; | |
| 55 } | |
| 56 | |
| 57 iron-icon[icon="settings:sync-problem"] { | |
| 58 --iron-icon-fill-color: var(--settings-error-color); | |
| 59 } | |
| 60 | |
| 61 .settings-box .sync-error { | |
|
tommycli
2016/05/18 18:31:47
I had to add this to make the class more specific
| |
| 62 color: var(--settings-error-color); | |
| 63 } | |
| 64 | |
| 48 #googleg-logo-container { | 65 #googleg-logo-container { |
| 49 -webkit-margin-end: 4px; | |
| 50 display: flex; | 66 display: flex; |
| 51 justify-content: center; | 67 justify-content: center; |
| 52 width: 40px; | 68 width: 40px; |
| 53 } | 69 } |
| 54 | 70 |
| 55 #googleg-logo { | 71 #googleg-logo { |
| 56 background-image: url(../../../../../ui/webui/resources/images/200-logo_ googleg.png); | 72 background-image: url(../../../../../ui/webui/resources/images/200-logo_ googleg.png); |
| 57 background-size: cover; | 73 background-size: cover; |
| 58 height: var(--iron-icon-height); | 74 height: var(--iron-icon-height); |
| 59 width: var(--iron-icon-width); | 75 width: var(--iron-icon-width); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 $i18n{syncDisconnect} | 107 $i18n{syncDisconnect} |
| 92 </paper-button> | 108 </paper-button> |
| 93 </span> | 109 </span> |
| 94 </template> | 110 </template> |
| 95 </if> | 111 </if> |
| 96 </div> | 112 </div> |
| 97 <div class="settings-box two-line" hidden="[[syncStatus.signedIn]]"> | 113 <div class="settings-box two-line" hidden="[[syncStatus.signedIn]]"> |
| 98 $i18n{syncOverview} | 114 $i18n{syncOverview} |
| 99 </div> | 115 </div> |
| 100 | 116 |
| 101 <div class="settings-box" hidden="[[!isStatusTextSet_(syncStatus)]]"> | |
| 102 <span id="syncStatusText"></span> | |
| 103 <paper-button on-tap="onSyncTap_"> | |
| 104 [[syncStatus.actionLinkText]] | |
| 105 </paper-button> | |
| 106 </div> | |
| 107 | |
| 108 <template is="dom-if" | 117 <template is="dom-if" |
| 109 if="[[isAdvancedSyncSettingsVisible_(syncStatus)]]"> | 118 if="[[isAdvancedSyncSettingsVisible_(syncStatus)]]"> |
| 110 <div class="settings-box"> | 119 <div class="settings-box two-line" on-tap="onSyncTap_"> |
| 111 <paper-button on-tap="onSyncTap_" class="primary-button"> | 120 <iron-icon id="sync-icon" icon$="[[getSyncIcon_(syncStatus)]]"> |
| 112 $i18n{syncPageTitle} | 121 </iron-icon> |
| 113 </paper-button> | 122 <div class="middle"> |
| 123 <div>$i18n{sync}</div> | |
| 124 <div class="secondary" hidden="[[syncStatus.hasError]]"> | |
| 125 [[syncStatus.statusText]] | |
| 126 </div> | |
| 127 <div class="secondary sync-error" | |
| 128 hidden="[[!syncStatus.hasError]]"> | |
| 129 [[syncStatus.statusText]] | |
| 130 </div> | |
| 131 </div> | |
| 114 </div> | 132 </div> |
| 115 </template> | 133 </template> |
| 116 | 134 |
| 117 <div class="settings-box" id="activity-controls" | 135 <div class="settings-box" id="activity-controls" |
| 118 on-tap="onActivityControlsTap_"> | 136 on-tap="onActivityControlsTap_"> |
| 119 <div id="googleg-logo-container"> | 137 <div id="googleg-logo-container"> |
| 120 <div id="googleg-logo"></div> | 138 <div id="googleg-logo"></div> |
| 121 </div> | 139 </div> |
| 122 <div class="middle"> | 140 <div class="middle"> |
| 123 <div>$i18n{personalizeGoogleServicesTitle}</div> | 141 <div>$i18n{personalizeGoogleServicesTitle}</div> |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 239 | 257 |
| 240 <if expr="chromeos"> | 258 <if expr="chromeos"> |
| 241 <template is="dom-if" if="[[easyUnlockEnabled_]]"> | 259 <template is="dom-if" if="[[easyUnlockEnabled_]]"> |
| 242 <easy-unlock-turn-off-dialog id="easyUnlockTurnOffDialog"> | 260 <easy-unlock-turn-off-dialog id="easyUnlockTurnOffDialog"> |
| 243 </easy-unlock-turn-off-dialog> | 261 </easy-unlock-turn-off-dialog> |
| 244 </template> | 262 </template> |
| 245 </if> | 263 </if> |
| 246 </template> | 264 </template> |
| 247 <script src="people_page.js"></script> | 265 <script src="people_page.js"></script> |
| 248 </dom-module> | 266 </dom-module> |
| OLD | NEW |