| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 1 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> | 3 <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/neon-animation/neon-ani
matable.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
matable.html"> |
| 5 <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-button/paper-butt
on.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> |
| 7 <link rel="import" href="/appearance_page/appearance_browser_proxy.html"> | 7 <link rel="import" href="/appearance_page/appearance_browser_proxy.html"> |
| 8 <link rel="import" href="/controls/controlled_radio_button.html"> | 8 <link rel="import" href="/controls/controlled_radio_button.html"> |
| 9 <link rel="import" href="/controls/settings_dropdown_menu.html"> | 9 <link rel="import" href="/controls/settings_dropdown_menu.html"> |
| 10 <link rel="import" href="/controls/settings_input.html"> | 10 <link rel="import" href="/controls/settings_input.html"> |
| 11 <link rel="import" href="/controls/settings_radio_group.html"> | 11 <link rel="import" href="/controls/settings_radio_group.html"> |
| 12 <link rel="import" href="/route.html"> | 12 <link rel="import" href="/route.html"> |
| 13 <link rel="import" href="/settings_page/settings_animated_pages.html"> | 13 <link rel="import" href="/settings_page/settings_animated_pages.html"> |
| 14 <link rel="import" href="/settings_page/settings_subpage.html"> | 14 <link rel="import" href="/settings_page/settings_subpage.html"> |
| 15 <link rel="import" href="/settings_shared_css.html"> | 15 <link rel="import" href="/settings_shared_css.html"> |
| 16 <link rel="import" href="appearance_fonts_page.html"> | 16 <link rel="import" href="appearance_fonts_page.html"> |
| 17 | 17 |
| 18 <dom-module id="settings-appearance-page"> | 18 <dom-module id="settings-appearance-page"> |
| 19 <template> | 19 <template> |
| 20 <style include="settings-shared"> | 20 <style include="settings-shared"> |
| 21 :host { | 21 :host { |
| 22 --paper-input-container-label: { | 22 --paper-input-container-label: { |
| 23 font-size: inherit; | 23 font-size: inherit; |
| 24 font-weight: inherit; | 24 font-weight: inherit; |
| 25 }; | 25 }; |
| 26 } | 26 } |
| 27 |
| 28 .secondary-button ~ .secondary-button { |
| 29 -webkit-margin-start: 12px; |
| 30 } |
| 27 </style> | 31 </style> |
| 28 <settings-animated-pages id="pages" section="appearance"> | 32 <settings-animated-pages id="pages" section="appearance"> |
| 29 <neon-animatable route-path="default"> | 33 <neon-animatable route-path="default"> |
| 30 <if expr="chromeos"> | 34 <if expr="chromeos"> |
| 31 <div class="settings-box first two-line" id="wallpaperButton" | 35 <div class="settings-box first two-line" id="wallpaperButton" |
| 32 on-tap="openWallpaperManager_" actionable | 36 on-tap="openWallpaperManager_" actionable |
| 33 hidden="[[!pageVisibility.setWallpaper]]"> | 37 hidden="[[!pageVisibility.setWallpaper]]"> |
| 34 <div class="start"> | 38 <div class="start"> |
| 35 $i18n{setWallpaper} | 39 $i18n{setWallpaper} |
| 36 <div class="secondary">$i18n{openWallpaperApp}</div> | 40 <div class="secondary">$i18n{openWallpaperApp}</div> |
| 37 </div> | 41 </div> |
| 38 <button class="icon-external" is="paper-icon-button-light"></button> | 42 <button class="icon-external" is="paper-icon-button-light"></button> |
| 39 </div> | 43 </div> |
| 40 <div class="settings-box two-line" | 44 <div class="settings-box two-line" |
| 41 hidden="[[!pageVisibility.setTheme]]" actionable> | 45 hidden="[[!pageVisibility.setTheme]]" actionable> |
| 42 </if> | 46 </if> |
| 43 <if expr="not chromeos"> | 47 <if expr="not chromeos"> |
| 44 <div class="settings-box two-line first" | 48 <div class="settings-box two-line first" |
| 45 hidden="[[!pageVisibility.setTheme]]" actionable> | 49 hidden="[[!pageVisibility.setTheme]]" actionable> |
| 46 </if> | 50 </if> |
| 47 <div class="start two-line" on-tap="openThemesGallery_"> | 51 <div class="start two-line" on-tap="openThemesGallery_"> |
| 48 <div class="flex"> | 52 <div class="flex"> |
| 49 <div>$i18n{theme}</div> | 53 <div>$i18n{themes}</div> |
| 50 <div class="secondary">[[themeSublabel_]]</div> | 54 <div class="secondary">[[themeSublabel_]]</div> |
| 51 </div> | 55 </div> |
| 52 <button class="icon-external" is="paper-icon-button-light"></button> | 56 <button class="icon-external" is="paper-icon-button-light"></button> |
| 53 </div> | 57 </div> |
| 54 <template is="dom-if" if="[[allowResetTheme_]]"> | 58 <if expr="not is_linux or chromeos"> |
| 59 <template is="dom-if" if="[[prefs.extensions.theme.id.value]]"> |
| 55 <div class="secondary-action"> | 60 <div class="secondary-action"> |
| 56 <paper-button id="resetTheme" on-tap="resetTheme_" | 61 <paper-button id="useDefault" on-tap="onUseDefaultTap_" |
| 57 class="secondary-button"> | 62 class="secondary-button"> |
| 58 $i18n{resetToDefaultTheme} | 63 $i18n{resetToDefaultTheme} |
| 59 </paper-button> | 64 </paper-button> |
| 60 </div> | 65 </div> |
| 61 </template> | 66 </template> |
| 67 </if> |
| 68 <if expr="is_linux and not chromeos"> |
| 69 <div class="secondary-action"> |
| 70 <template is="dom-if" if="[[showUseClassic_( |
| 71 prefs.extensions.theme.id.value, useSystemTheme_)]]" restamp> |
| 72 <paper-button id="useDefault" on-tap="onUseDefaultTap_" |
| 73 class="secondary-button"> |
| 74 $i18n{useClassicTheme} |
| 75 </paper-button> |
| 76 </template> |
| 77 <template is="dom-if" if="[[showUseSystem_( |
| 78 prefs.extensions.theme.id.value, useSystemTheme_)]]" restamp> |
| 79 <paper-button id="useSystem" on-tap="onUseSystemTap_" |
| 80 class="secondary-button"> |
| 81 $i18n{useSystemTheme} |
| 82 </paper-button> |
| 83 </template> |
| 84 </div> |
| 85 </if> |
| 62 </div> | 86 </div> |
| 63 <div class="settings-box" | 87 <div class="settings-box" |
| 64 hidden="[[!pageVisibility.homeButton]]"> | 88 hidden="[[!pageVisibility.homeButton]]"> |
| 65 <settings-checkbox class="start" label="$i18n{showHomeButton}" | 89 <settings-checkbox class="start" label="$i18n{showHomeButton}" |
| 66 sub-label="[[getShowHomeSubLabel_(prefs.homepage_is_newtabpage.val
ue, prefs.homepage.value)]]" | 90 sub-label="[[getShowHomeSubLabel_(prefs.homepage_is_newtabpage.val
ue, prefs.homepage.value)]]" |
| 67 pref="{{prefs.browser.show_home_button}}"> | 91 pref="{{prefs.browser.show_home_button}}"> |
| 68 </settings-checkbox> | 92 </settings-checkbox> |
| 69 </div> | 93 </div> |
| 70 <template is="dom-if" if="[[prefs.browser.show_home_button.value]]"> | 94 <template is="dom-if" if="[[prefs.browser.show_home_button.value]]"> |
| 71 <div class="list-frame" | 95 <div class="list-frame" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 associated-control="[[$$('#customize-fonts-subpage-trigger')]]" | 155 associated-control="[[$$('#customize-fonts-subpage-trigger')]]" |
| 132 page-title="$i18n{customizeFonts}"> | 156 page-title="$i18n{customizeFonts}"> |
| 133 <settings-appearance-fonts-page prefs="{{prefs}}"> | 157 <settings-appearance-fonts-page prefs="{{prefs}}"> |
| 134 </settings-appearance-fonts-page> | 158 </settings-appearance-fonts-page> |
| 135 </settings-subpage> | 159 </settings-subpage> |
| 136 </template> | 160 </template> |
| 137 </settings-animated-pages> | 161 </settings-animated-pages> |
| 138 </template> | 162 </template> |
| 139 <script src="appearance_page.js"></script> | 163 <script src="appearance_page.js"></script> |
| 140 </dom-module> | 164 </dom-module> |
| OLD | NEW |