blob: 851f5f6ed5fafdeea2f8757d8e7b9e9ecbcd89cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
<link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classes/iron-flex-layout.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/device-icons.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/image-icons.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-button/paper-radio-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/paper-toggle-button.html">
<link rel="import" href="chrome://md-settings/controls/settings_dropdown_menu.html">
<link rel="import" href="chrome://md-settings/controls/settings_input.html">
<link rel="import" href="chrome://md-settings/controls/settings_radio_group.html">
<link rel="import" href="chrome://md-settings/settings_page/settings_animated_pages.html">
<link rel="import" href="chrome://md-settings/settings_page/settings_subheader.html">
<link rel="import" href="chrome://md-settings/settings_shared_css.html">
<link rel="import" href="appearance_fonts_page.html">
<dom-module id="settings-appearance-page">
<link rel="import" type="css"
href="chrome://md-settings/appearance_page/appearance_shared.css">
<link rel="import" type="css" href="chrome://resources/css/widgets.css">
<link rel="import" href="chrome://resources/html/action_link.html">
<template>
<style include="settings-shared"></style>
<settings-animated-pages id="pages" current-route="{{currentRoute}}"
section="appearance">
<neon-animatable id="main">
<div class="settings-box first two-line">
<iron-icon icon="device:wallpaper"></iron-icon>
<paper-button class="primary-button middle">
<div>[[i18n('setWallpaper')]]</div>
<div class="secondary">[[i18n('openWallpaperApp')]]</div>
</paper-button>
</div>
<div class="settings-box two-line">
<iron-icon icon="image:palette"></iron-icon>
<paper-button class="primary-button middle" id="get-themes"
on-tap="openThemesGallery_">
<div>[[i18n('getThemes')]]</div>
<div class="secondary">[[i18n('chooseFromWebStore')]]</div>
</paper-button>
<template is="dom-if" if="[[allowResetTheme_]]">
<paper-button on-tap="resetTheme_"
>[[i18n('resetToDefaultTheme')]]</paper-button>
</template>
</div>
<div class="settings-box two-line">
<settings-checkbox class="start" i18n-values="label:showHomeButton"
sub-label="[[getShowHomeSubLabel_(prefs.homepage_is_newtabpage.value, prefs.homepage.value)]]"
pref="{{prefs.browser.show_home_button}}">
</settings-checkbox>
</div>
<template is="dom-if" if="[[prefs.browser.show_home_button.value]]">
<div class="list-frame">
<settings-radio-group pref="{{prefs.homepage_is_newtabpage}}">
<paper-radio-button class="list-item" name="true">
[[i18n('homePageNtp')]]
</paper-radio-button>
<paper-radio-button class="list-item" name="false">
[[i18n('other')]]
<settings-input no-label-float pref="{{prefs.homepage}}"
label="[[i18n('exampleDotCom')]]">
</settings-input>
</paper-radio-button>
</settings-radio-group>
</div>
</template>
<div class="settings-box">
<settings-checkbox class="start" i18n-values="label:showBookmarksBar"
pref="{{prefs.bookmark_bar.show_on_all_tabs}}">
</settings-checkbox>
</div>
<div class="settings-box">
<div class="start" i18n-content="fontSize"></div>
<settings-dropdown-menu id="defaultFontSize"
pref="{{prefs.webkit.webprefs.default_font_size}}"
menu-options="[[fontSizeOptions_]]" no-label-float>
</settings-dropdown-menu>
</div>
<div class="settings-box two-line" on-tap="onCustomizeFontsTap_">
<div class="start">
<div i18n-content="customizeFonts"></div>
<div class="secondary" i18n-content="chooseFontsAndEncoding"></div>
</div>
</div>
<div class="settings-box">
<div class="start" i18n-content="pageZoom"></div>
<settings-dropdown-menu id="pageZoom" pref="{{defaultZoomLevel_}}"
menu-options="[[pageZoomOptions_]]" no-label-float>
</settings-dropdown-menu>
</div>
</neon-animatable>
<neon-animatable id="appearance-fonts">
<settings-subheader i18n-values="page-title:customizeFonts">
</settings-subheader>
<template is="dom-if" if="[[showFontsPage_(currentRoute.subpage.*)]]"
restamp>
<settings-appearance-fonts-page prefs="{{prefs}}">
</settings-appearance-fonts-page>
</template>
</neon-animatable>
</settings-animated-pages>
</template>
<script src="appearance_page.js"></script>
</dom-module>
|