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