Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: chrome/browser/resources/settings/settings_ui/settings_ui.html

Issue 2064013002: MD Settings: Replace current toolbar with cr-toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@search_box1
Patch Set: Undo accidental change. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.ht ml">
1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 2 <link rel="import" href="chrome://resources/cr_elements/icons.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 3 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/app-layout/app-drawer/a pp-drawer.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/app-layout/app-drawer/a pp-drawer.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-header-panel/pape r-header-panel.html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-header-panel/pape r-header-panel.html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html">
9 <link rel="import" href="/direction_delegate.html"> 9 <link rel="import" href="/direction_delegate.html">
10 <link rel="import" href="/i18n_setup.html"> 10 <link rel="import" href="/i18n_setup.html">
11 <link rel="import" href="/icons.html"> 11 <link rel="import" href="/icons.html">
12 <link rel="import" href="/settings_main/settings_main.html"> 12 <link rel="import" href="/settings_main/settings_main.html">
13 <link rel="import" href="/settings_menu/settings_menu.html"> 13 <link rel="import" href="/settings_menu/settings_menu.html">
14 <link rel="import" href="/settings_page/settings_router.html"> 14 <link rel="import" href="/settings_page/settings_router.html">
15 <link rel="import" href="/settings_shared_css.html"> 15 <link rel="import" href="/settings_shared_css.html">
16 16
17 <dom-module id="settings-ui"> 17 <dom-module id="settings-ui">
18 <template> 18 <template>
19 <style include="settings-shared"> 19 <style include="settings-shared">
20 :host { 20 :host {
21 @apply(--layout-fit); 21 @apply(--layout-fit);
22 -webkit-user-select: none; 22 -webkit-user-select: none;
23 background-color: var(--settings-background-color); 23 background-color: var(--settings-background-color);
24 display: flex; 24 display: flex;
25 flex-direction: column; 25 flex-direction: column;
26 } 26 }
27 27
28 paper-icon-button[suffix] {
29 --iron-icon-fill-color: var(--settings-title-search-color);
30 height: 32px; /* After padding, the icon size is 16px. */
31 width: 32px;
32 }
33
34 paper-input {
35 --paper-input-container: {
36 padding-top: 0;
37 };
38 --paper-input-container-color: var(--settings-title-search-color);
39 --paper-input-container-focus-color: var(--settings-title-search-color);
40 --paper-input-container-input: {
41 font-size: 81.25%; /* go to 13px from 16px */
42 position: relative;
43 top: 3px; /* Special positioning needed for UX design. */
44 };
45
46 /*
47 * The button in the input suffix needs special positioning for the UX
48 * design. The hit box extends right and down from the paper-input
49 * underline.
50 */
51 --paper-input-suffix: {
52 left: 8px;
53 line-height: 16px;
54 position: relative;
55 top: 4px;
56 };
57 --paper-input-container-input-color: var(--settings-title-bar-color);
58 --paper-input-container-label: {
59 font-size: 81.25%; /* go to 13px from 16px */
60 top: 3px; /* Special positioning needed for UX design. */
61 };
62 --paper-input-max-width: 200px;
63
64 align-items: center;
65 }
66
67
68 paper-header-panel { 28 paper-header-panel {
69 --paper-header-panel-shadow: { 29 --paper-header-panel-shadow: {
70 z-index: 2; 30 z-index: 2;
71 }; 31 };
72 } 32 }
73 33
74 .heading { 34 .heading {
75 -webkit-margin-start: 8px; 35 -webkit-margin-start: 8px;
76 } 36 }
77 37
78 paper-icon-button[toggles]:not([active]) + #search-input {
79 display: none;
80 }
81
82 .paper-header { 38 .paper-header {
83 -webkit-padding-start: 24px; 39 -webkit-padding-start: 24px;
84 align-items: center; 40 align-items: center;
85 border-bottom: var(--settings-separator-line); 41 border-bottom: var(--settings-separator-line);
86 display: flex; 42 display: flex;
87 font-size: 123.08%; /* go to 16px from 13px */ 43 font-size: 123.08%; /* go to 16px from 13px */
88 min-height: 56px; 44 min-height: 56px;
89 } 45 }
90 46
91 .last { 47 .last {
92 display: flex; 48 display: flex;
93 justify-content: flex-end; 49 justify-content: flex-end;
94 width: 100%; 50 width: 100%;
95 } 51 }
96 52
97 app-drawer { 53 app-drawer {
98 z-index: 1; 54 z-index: 1;
99 } 55 }
100 56
101 .toolbar,
102 app-drawer .drawer-header { 57 app-drawer .drawer-header {
103 align-items: center; 58 align-items: center;
104 display: flex; 59 display: flex;
105 font-size: 123.08%; /* go to 16px from 13px */ 60 font-size: 123.08%; /* go to 16px from 13px */
106 min-height: 56px; 61 min-height: 56px;
107 } 62 }
108 63
109 .toolbar { 64 cr-toolbar {
65 @apply(--layout-center);
66 --side-bar-width: 256px;
110 background-color: var(--settings-title-bar-background-color); 67 background-color: var(--settings-title-bar-background-color);
111 color: white; 68 color: white;
112 padding: 0 16px; 69 min-height: 56px;
113 } 70 }
114 71
115 .toolbar paper-icon-button { 72 cr-toolbar,
73 paper-icon-button {
116 --iron-icon-fill-color: white; 74 --iron-icon-fill-color: white;
117 } 75 }
118 76
119 app-drawer .drawer-header { 77 app-drawer .drawer-header {
120 -webkit-padding-start: 24px; 78 -webkit-padding-start: 24px;
121 border-bottom: var(--settings-separator-line); 79 border-bottom: var(--settings-separator-line);
122 } 80 }
123 81
124 app-drawer .drawer-content { 82 app-drawer .drawer-content {
125 height: calc(100% - 56px); 83 height: calc(100% - 56px);
126 overflow: auto; 84 overflow: auto;
127 } 85 }
128 </style> 86 </style>
129 <settings-router current-route="{{currentRoute}}" 87 <settings-router current-route="{{currentRoute}}"
130 current-route-titles="{{currentRouteTitles}}"> 88 current-route-titles="{{currentRouteTitles}}">
131 </settings-router> 89 </settings-router>
132 <div class="toolbar"> 90 <!-- TODO(dpapad): Remove "coming soon" string once crbug.com/608535 fully
91 addressed -->
92 <cr-toolbar page-name="$i18n{settings}"
93 clear-label="$i18n{clearSearch}" search-prompt="$i18n{searchPrompt}
94 (coming soon!)">
133 <paper-icon-button icon="settings:menu" on-tap="onMenuButtonTap_"> 95 <paper-icon-button icon="settings:menu" on-tap="onMenuButtonTap_">
134 </paper-icon-button> 96 </paper-icon-button>
135 <div class="heading flex">$i18n{settings}</div> 97 </cr-toolbar>
136 <div class="last">
137 <paper-icon-button icon="cr:search" toggles></paper-icon-button>
138 <paper-input id="search-input" label="$i18n{internalSearch}"
139 no-label-float>
140 <!-- TODO(dschuyler): implement internal search. -->
141 <paper-icon-button suffix icon="cr:cancel">
142 </paper-icon-button>
143 </paper-input>
144 </div>
145 </div>
146 <app-drawer swipe-open> 98 <app-drawer swipe-open>
147 <!--TODO(dpapad): Restore waterfall effect or remove this TODO, depending 99 <!--TODO(dpapad): Restore waterfall effect or remove this TODO, depending
148 on outcome of crbug.com/621718--> 100 on outcome of crbug.com/621718-->
149 <div class="drawer-header">$i18n{settings}</div> 101 <div class="drawer-header">$i18n{settings}</div>
150 <div class="drawer-content"> 102 <div class="drawer-content">
151 <settings-menu current-route="{{currentRoute}}" id="sideNav"> 103 <settings-menu current-route="{{currentRoute}}" id="sideNav">
152 </settings-menu> 104 </settings-menu>
153 </div> 105 </div>
154 </app-drawer> 106 </app-drawer>
155 <paper-header-panel mode="waterfall"> 107 <paper-header-panel mode="waterfall">
156 <settings-main prefs="{{prefs}}" current-route="{{currentRoute}}"> 108 <settings-main prefs="{{prefs}}" current-route="{{currentRoute}}">
157 </settings-main> 109 </settings-main>
158 </paper-header-panel> 110 </paper-header-panel>
159 </template> 111 </template>
160 <script src="settings_ui.js"></script> 112 <script src="settings_ui.js"></script>
161 </dom-module> 113 </dom-module>
OLDNEW
« no previous file with comments | « chrome/app/settings_strings.grdp ('k') | chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698