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. #
Messages
Total messages: 10 (0 generated)
|