Update range, meter and progress for consistency
This CL implements new looks for <input type=range>, <meter>, and <progress>. NativeThemeAura::PaintProgressBar is added for <progress>. New css rules are added in controls_refresh.css for <meter>. NativeThemeAura::PaintSliderTrack is updated for <input type=range>. Several constants (ex width/radius) are updated per design and cleaned up. AlignSliderTrack is updated to use float instead of int to better align the thumb and the track. The high contrast test, range.html, is replaced with range_meter_progress.html to better visualize the three related controls. Note for some reason NativeThemeAura::PaintProgressBar is not called in webtest mode when ForcedColors flag is enabled (The progress bar in range_meter_progress-expected.png shows some old rendering) The issue will be addressed in a separate CL. Bug: 1001563 Change-Id: I9e6da39caf86c2b12187f5c56e0ef99989e3c0f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1817151Reviewed-by:Kent Tamura <tkent@chromium.org> Reviewed-by:
Elly Fong-Jones <ellyjones@chromium.org> Commit-Queue: Alex Keng <shihken@microsoft.com> Cr-Commit-Position: refs/heads/master@{#699637}
Showing
3.03 KB
3.61 KB

3.18 KB



4.63 KB

4.98 KB

4.63 KB

4.98 KB

4.63 KB

4.98 KB

4.63 KB

4.98 KB

4.8 KB

3.94 KB
4.63 KB

4.98 KB

4.63 KB

4.98 KB

This diff is collapsed.