| 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/iron-icon/iron-icon.htm
l"> | 4 <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/neon-animation/neon-ani
matable.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
matable.html"> |
| 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="chrome://resources/polymer/v1_0/paper-radio-button/pape
r-radio-button.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-button/pape
r-radio-button.html"> |
| 8 <link rel="import" href="/appearance_page/appearance_browser_proxy.html"> | 8 <link rel="import" href="/appearance_page/appearance_browser_proxy.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"> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 <style include="settings-shared"> | 22 <style include="settings-shared"> |
| 23 .settings-box iron-icon { | 23 .settings-box iron-icon { |
| 24 -webkit-margin-end: var(--iron-icon-spacing); | 24 -webkit-margin-end: var(--iron-icon-spacing); |
| 25 } | 25 } |
| 26 </style> | 26 </style> |
| 27 <settings-animated-pages id="pages" current-route="{{currentRoute}}" | 27 <settings-animated-pages id="pages" current-route="{{currentRoute}}" |
| 28 section="appearance"> | 28 section="appearance"> |
| 29 <neon-animatable id="main"> | 29 <neon-animatable id="main"> |
| 30 <if expr="chromeos"> | 30 <if expr="chromeos"> |
| 31 <div class="settings-box first two-line" id="wallpaperButton" | 31 <div class="settings-box first two-line" id="wallpaperButton" |
| 32 on-tap="openWallpaperManager_" actionable> | 32 on-tap="openWallpaperManager_" actionable |
| 33 hidden="[[!pageVisibility.appearance.setWallpaper]]"> |
| 33 <iron-icon icon="settings:wallpaper"></iron-icon> | 34 <iron-icon icon="settings:wallpaper"></iron-icon> |
| 34 <div class="start"> | 35 <div class="start"> |
| 35 <div>$i18n{setWallpaper}</div> | 36 <div>$i18n{setWallpaper}</div> |
| 36 <div class="secondary">$i18n{openWallpaperApp}</div> | 37 <div class="secondary">$i18n{openWallpaperApp}</div> |
| 37 </div> | 38 </div> |
| 38 </div> | 39 </div> |
| 39 <div class="settings-box two-line"> | 40 <div class="settings-box two-line" |
| 41 hidden="[[!pageVisibility.appearance.setTheme]]"> |
| 40 </if> | 42 </if> |
| 41 <if expr="not chromeos"> | 43 <if expr="not chromeos"> |
| 42 <div class="settings-box two-line first"> | 44 <div class="settings-box two-line first" |
| 45 hidden="[[!pageVisibility.appearance.setTheme]]"> |
| 43 </if> | 46 </if> |
| 44 <div class="layout horizontal center flex" | 47 <div class="layout horizontal center flex" |
| 45 on-tap="openThemesGallery_" actionable> | 48 on-tap="openThemesGallery_" actionable> |
| 46 <iron-icon icon="settings:palette"></iron-icon> | 49 <iron-icon icon="settings:palette"></iron-icon> |
| 47 <div> | 50 <div> |
| 48 <div>$i18n{getThemes}</div> | 51 <div>$i18n{getThemes}</div> |
| 49 <div class="secondary">[[themeSublabel_]]</div> | 52 <div class="secondary">[[themeSublabel_]]</div> |
| 50 </div> | 53 </div> |
| 51 </div> | 54 </div> |
| 52 <template is="dom-if" if="[[allowResetTheme_]]"> | 55 <template is="dom-if" if="[[allowResetTheme_]]"> |
| 53 <div class="secondary-action"> | 56 <div class="secondary-action"> |
| 54 <paper-button id="resetTheme" on-tap="resetTheme_" | 57 <paper-button id="resetTheme" on-tap="resetTheme_" |
| 55 class="secondary-button"> | 58 class="secondary-button"> |
| 56 $i18n{resetToDefaultTheme} | 59 $i18n{resetToDefaultTheme} |
| 57 </paper-button> | 60 </paper-button> |
| 58 </div> | 61 </div> |
| 59 </template> | 62 </template> |
| 60 </div> | 63 </div> |
| 61 <div class="settings-box two-line"> | 64 <div class="settings-box two-line" |
| 65 hidden="[[!pageVisibility.appearance.homeButton]]"> |
| 62 <settings-checkbox class="start" label="$i18n{showHomeButton}" | 66 <settings-checkbox class="start" label="$i18n{showHomeButton}" |
| 63 sub-label="[[getShowHomeSubLabel_(prefs.homepage_is_newtabpage.val
ue, prefs.homepage.value)]]" | 67 sub-label="[[getShowHomeSubLabel_(prefs.homepage_is_newtabpage.val
ue, prefs.homepage.value)]]" |
| 64 pref="{{prefs.browser.show_home_button}}"> | 68 pref="{{prefs.browser.show_home_button}}"> |
| 65 </settings-checkbox> | 69 </settings-checkbox> |
| 66 </div> | 70 </div> |
| 67 <template is="dom-if" if="[[prefs.browser.show_home_button.value]]"> | 71 <template is="dom-if" if="[[prefs.browser.show_home_button.value]]"> |
| 68 <div class="list-frame"> | 72 <div class="list-frame" |
| 73 hidden="[[!pageVisibility.appearance.homeButton]]"> |
| 69 <settings-radio-group pref="{{prefs.homepage_is_newtabpage}}"> | 74 <settings-radio-group pref="{{prefs.homepage_is_newtabpage}}"> |
| 70 <paper-radio-button class="list-item" name="true"> | 75 <paper-radio-button class="list-item" name="true"> |
| 71 $i18n{homePageNtp} | 76 $i18n{homePageNtp} |
| 72 </paper-radio-button> | 77 </paper-radio-button> |
| 73 <paper-radio-button class="list-item" name="false"> | 78 <paper-radio-button class="list-item" name="false"> |
| 74 $i18n{other} | 79 $i18n{other} |
| 75 <settings-input no-label-float pref="{{prefs.homepage}}" | 80 <settings-input no-label-float pref="{{prefs.homepage}}" |
| 76 label="$i18n{exampleDotCom}"> | 81 label="$i18n{exampleDotCom}"> |
| 77 </settings-input> | 82 </settings-input> |
| 78 </paper-radio-button> | 83 </paper-radio-button> |
| 79 </settings-radio-group> | 84 </settings-radio-group> |
| 80 </div> | 85 </div> |
| 81 </template> | 86 </template> |
| 82 <div class="settings-box"> | 87 <div class="settings-box" |
| 88 hidden="[[!pageVisibility.appearance.bookmarksBar]]"> |
| 83 <settings-checkbox class="start" label="$i18n{showBookmarksBar}" | 89 <settings-checkbox class="start" label="$i18n{showBookmarksBar}" |
| 84 pref="{{prefs.bookmark_bar.show_on_all_tabs}}"> | 90 pref="{{prefs.bookmark_bar.show_on_all_tabs}}"> |
| 85 </settings-checkbox> | 91 </settings-checkbox> |
| 86 </div> | 92 </div> |
| 93 <div class="settings-box" |
| 94 first$="[[!pageVisibility.appearance.bookmarksBar]]"> |
| 87 <if expr="is_linux and not chromeos"> | 95 <if expr="is_linux and not chromeos"> |
| 88 <div class="settings-box"> | |
| 89 <settings-checkbox class="start" label="$i18n{showWindowDecorations}" | 96 <settings-checkbox class="start" label="$i18n{showWindowDecorations}" |
| 90 pref="{{prefs.browser.custom_chrome_frame}}"> | 97 pref="{{prefs.browser.custom_chrome_frame}}"> |
| 91 </settings-checkbox> | 98 </settings-checkbox> |
| 92 </div> | 99 </div> |
| 100 <div class="settings-box"> |
| 93 </if> | 101 </if> |
| 94 <div class="settings-box"> | |
| 95 <div class="start">$i18n{fontSize}</div> | 102 <div class="start">$i18n{fontSize}</div> |
| 96 <settings-dropdown-menu id="defaultFontSize" | 103 <settings-dropdown-menu id="defaultFontSize" |
| 97 pref="{{prefs.webkit.webprefs.default_font_size}}" | 104 pref="{{prefs.webkit.webprefs.default_font_size}}" |
| 98 menu-options="[[fontSizeOptions_]]" no-label-float> | 105 menu-options="[[fontSizeOptions_]]" no-label-float> |
| 99 </settings-dropdown-menu> | 106 </settings-dropdown-menu> |
| 100 </div> | 107 </div> |
| 101 <div class="settings-box two-line" on-tap="onCustomizeFontsTap_" | 108 <div class="settings-box two-line" on-tap="onCustomizeFontsTap_" |
| 102 actionable> | 109 actionable> |
| 103 <div class="start"> | 110 <div class="start"> |
| 104 <div>$i18n{customizeFonts}</div> | 111 <div>$i18n{customizeFonts}</div> |
| 105 <div class="secondary">$i18n{chooseFontsAndEncoding}</div> | 112 <div class="secondary">$i18n{chooseFontsAndEncoding}</div> |
| 106 </div> | 113 </div> |
| 107 </div> | 114 </div> |
| 108 <div class="settings-box"> | 115 <div class="settings-box" |
| 116 hidden="[[!pageVisibility.appearance.pageZoom]]"> |
| 109 <div class="start">$i18n{pageZoom}</div> | 117 <div class="start">$i18n{pageZoom}</div> |
| 110 <settings-dropdown-menu id="pageZoom" pref="{{defaultZoomLevel_}}" | 118 <settings-dropdown-menu id="pageZoom" pref="{{defaultZoomLevel_}}" |
| 111 menu-options="[[pageZoomOptions_]]" no-label-float> | 119 menu-options="[[pageZoomOptions_]]" no-label-float> |
| 112 </settings-dropdown-menu> | 120 </settings-dropdown-menu> |
| 113 </div> | 121 </div> |
| 114 </neon-animatable> | 122 </neon-animatable> |
| 115 <template is="dom-if" name="appearance-fonts"> | 123 <template is="dom-if" name="appearance-fonts"> |
| 116 <settings-subpage page-title="$i18n{customizeFonts}"> | 124 <settings-subpage page-title="$i18n{customizeFonts}"> |
| 117 <settings-appearance-fonts-page prefs="{{prefs}}"> | 125 <settings-appearance-fonts-page prefs="{{prefs}}"> |
| 118 </settings-appearance-fonts-page> | 126 </settings-appearance-fonts-page> |
| 119 </settings-subpage> | 127 </settings-subpage> |
| 120 </template> | 128 </template> |
| 121 </settings-animated-pages> | 129 </settings-animated-pages> |
| 122 </template> | 130 </template> |
| 123 <script src="appearance_page.js"></script> | 131 <script src="appearance_page.js"></script> |
| 124 </dom-module> | 132 </dom-module> |
| OLD | NEW |