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

Issue 473583002: [Local NTP] Implementing Material Design styling (Closed)

Created:
6 years, 4 months ago by huangs
Modified:
6 years, 4 months ago
Reviewers:
Mathieu, Jered
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, arv+watch_chromium.org, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered
Project:
chromium
Visibility:
Public.

Description

[Local NTP] Implementing Material Design styling We also want the "classical" NTP to coexist with the new design, and switchable via Finch. Key changes: - Adding classes to #ntp-content, then using CSS to control styling. - .classical for old NTP - .md for Material Design - .default-theme for values that will be overriden by themes. This is needed so dynamic CSS changes in setCustomThemeStyle() are not subsumed by specialized .classical and .md. - .dark: for dark background. - The .mv-mask <div> is promoted to handle tile effects, including border, shadow, and background. Borders are drawn differently now. This lead to fix of 1px offset of .mv-title . Some new designs are still in flux. Our goal is to get a reasonable bulk committed for m38, then worry about some tune-ups later. TEST=Run "chrome.exe --force-fieldtrials=MaterialDesignNTP/Enabled/", visit chrome-search://local-ntp/local-ntp.html . If chrome.exe is run without the switch, the local NTP should be identical to before, except for 1px .mv-title shift. BUG=400332 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289682

Patch Set 1 #

Total comments: 16

Patch Set 2 : Cleanups; injecting 'classical' style from C++; fix animation. #

Patch Set 3 : Removing Roboto; fixing theme compatibility; using .mv-mask for borders. #

Total comments: 4

Patch Set 4 : Fixing comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -145 lines) Patch
M chrome/browser/resources/local_ntp/local_ntp.css View 1 2 12 chunks +315 lines, -52 lines 0 comments Download
M chrome/browser/resources/local_ntp/local_ntp.js View 1 2 22 chunks +129 lines, -63 lines 0 comments Download
M chrome/browser/resources/local_ntp/local_ntp_design.js View 1 2 3 3 chunks +47 lines, -15 lines 0 comments Download
M chrome/browser/resources/local_ntp/most_visited_thumbnail.css View 1 2 1 chunk +1 line, -8 lines 0 comments Download
M chrome/browser/resources/local_ntp/most_visited_thumbnail.js View 1 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/resources/local_ntp/most_visited_util.js View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/search/local_ntp_source.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
huangs
Preliminary upload for early feedback. We will see more style changes and assets, but I ...
6 years, 4 months ago (2014-08-13 19:38:55 UTC) #1
Mathieu
Looks mostly good! https://codereview.chromium.org/473583002/diff/1/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (right): https://codereview.chromium.org/473583002/diff/1/chrome/browser/resources/local_ntp/local_ntp.js#newcode311 chrome/browser/resources/local_ntp/local_ntp.js:311: function getIsBackgroundDark(info) { rename to isThemeBackgroundDark? ...
6 years, 4 months ago (2014-08-13 20:09:30 UTC) #2
huangs
Updated, PTAL! https://codereview.chromium.org/473583002/diff/1/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (right): https://codereview.chromium.org/473583002/diff/1/chrome/browser/resources/local_ntp/local_ntp.js#newcode311 chrome/browser/resources/local_ntp/local_ntp.js:311: function getIsBackgroundDark(info) { Inlined this into renderTheme(), ...
6 years, 4 months ago (2014-08-13 21:34:09 UTC) #3
huangs
+jered@
6 years, 4 months ago (2014-08-13 22:06:11 UTC) #4
Mathieu
lgtm if the CSS looks like your circulated demo https://codereview.chromium.org/473583002/diff/40001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/473583002/diff/40001/chrome/browser/browser_resources.grd#newcode217 chrome/browser/browser_resources.grd:217: ...
6 years, 4 months ago (2014-08-14 15:05:39 UTC) #5
huangs
Thanks. Submitting! https://codereview.chromium.org/473583002/diff/40001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/473583002/diff/40001/chrome/browser/browser_resources.grd#newcode217 chrome/browser/browser_resources.grd:217: <include name="IDR_ROBOTO_WOFF" file="resources\roboto\roboto.woff" type="BINDATA" /> On 2014/08/14 ...
6 years, 4 months ago (2014-08-14 15:50:21 UTC) #6
huangs
The CQ bit was checked by huangs@chromium.org
6 years, 4 months ago (2014-08-14 16:03:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/473583002/60001
6 years, 4 months ago (2014-08-14 16:06:00 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-14 19:22:20 UTC) #9
commit-bot: I haz the power
6 years, 4 months ago (2014-08-14 19:58:35 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (60001) as 289682

Powered by Google App Engine
This is Rietveld 408576698