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

Issue 2587913007: MD Settings: cr-slider: Make display consistent and clean up. (Closed)

Created:
4 years ago by stevenjb
Modified:
3 years, 11 months ago
Reviewers:
dschuyler, michaelpg
CC:
chromium-reviews, dbeam+watch-elements_chromium.org, michaelpg+watch-md-settings_chromium.org, jlklein+watch-closure_chromium.org, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, vitalyp+closure_chromium.org, dbeam+watch-settings_chromium.org, michaelpg+watch-elements_chromium.org, stevenjb+watch-md-settings_chromium.org, dbeam+watch-closure_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: cr-slider: Make slider appearance consistent and clean up. This CL: * Switches display.html to use cr-slider (was only use of paper-slider) * Changes styling of cr-slider as follows: ** Slider bar is grey instead of active (left) portion being blue. ** Knob is always blue (even at leftmost position) ** Ticks are shown automatically if there are < 10 ** Labels are shown as part of cr-slider and shown below the slider See issue for screenshots. BUG=598879 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/26b1599ba3f24f4124d8d78227fb815dc1c2e696 Cr-Commit-Position: refs/heads/master@{#440785}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : Add tiny/huge labels #

Total comments: 15

Patch Set 5 : Feedback #

Total comments: 3

Patch Set 6 : More Feedback #

Patch Set 7 : Update tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -127 lines) Patch
M chrome/browser/resources/settings/appearance_page/appearance_fonts_page.html View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/resources/settings/appearance_page/compiled_resources2.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/device_page/compiled_resources2.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/device_page/display.html View 1 2 3 chunks +6 lines, -9 lines 0 comments Download
M chrome/browser/resources/settings/device_page/display.js View 1 2 3 4 5 7 chunks +42 lines, -34 lines 0 comments Download
M chrome/browser/resources/settings/device_page/keyboard.html View 1 2 3 4 2 chunks +19 lines, -21 lines 0 comments Download
M chrome/browser/resources/settings/device_page/pointers.html View 2 chunks +10 lines, -15 lines 0 comments Download
M chrome/browser/resources/settings/settings_shared_css.html View 1 2 3 4 5 6 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/test/data/webui/cr_elements/cr_slider_tests.js View 1 2 3 4 5 6 2 chunks +4 lines, -18 lines 0 comments Download
M chrome/test/data/webui/settings/device_page_tests.js View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_slider/cr_slider.html View 1 2 3 4 1 chunk +36 lines, -5 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_slider/cr_slider.js View 1 2 3 4 5 4 chunks +14 lines, -10 lines 0 comments Download

Messages

Total messages: 31 (14 generated)
stevenjb
4 years ago (2016-12-20 00:45:53 UTC) #3
stevenjb
4 years ago (2016-12-22 02:00:13 UTC) #5
dschuyler
On 2016/12/22 02:00:13, stevenjb wrote: I was looking to the issue for screen shots as ...
4 years ago (2016-12-22 02:02:54 UTC) #7
dschuyler
https://codereview.chromium.org/2587913007/diff/60001/chrome/browser/resources/settings/device_page/display.js File chrome/browser/resources/settings/device_page/display.js (right): https://codereview.chromium.org/2587913007/diff/60001/chrome/browser/resources/settings/device_page/display.js#newcode56 chrome/browser/resources/settings/device_page/display.js:56: /** @private {!Array<number>} Mode index values for slider. */ ...
4 years ago (2016-12-22 02:36:36 UTC) #8
stevenjb
Sorry about the bogus issue #, I fixed that. https://codereview.chromium.org/2587913007/diff/60001/chrome/browser/resources/settings/device_page/display.js File chrome/browser/resources/settings/device_page/display.js (right): https://codereview.chromium.org/2587913007/diff/60001/chrome/browser/resources/settings/device_page/display.js#newcode56 chrome/browser/resources/settings/device_page/display.js:56: ...
4 years ago (2016-12-22 02:55:25 UTC) #10
michaelpg
This is complicated and I'm on vacation, so feel free to use dschuyler's approval and ...
4 years ago (2016-12-22 07:31:32 UTC) #11
stevenjb
On 2016/12/22 07:31:32, michaelpg (OOO) wrote: > This is complicated and I'm on vacation, so ...
4 years ago (2016-12-22 19:21:50 UTC) #12
stevenjb
PTAL https://codereview.chromium.org/2587913007/diff/60001/chrome/browser/resources/settings/device_page/display.js File chrome/browser/resources/settings/device_page/display.js (right): https://codereview.chromium.org/2587913007/diff/60001/chrome/browser/resources/settings/device_page/display.js#newcode161 chrome/browser/resources/settings/device_page/display.js:161: this.modeValues_ = Array.from(Array(numModes).keys()); On 2016/12/22 07:31:32, michaelpg (OOO) ...
3 years, 12 months ago (2016-12-22 20:42:18 UTC) #13
dschuyler
LGTM with comment on tick count limit. https://codereview.chromium.org/2587913007/diff/80001/ui/webui/resources/cr_elements/cr_slider/cr_slider.js File ui/webui/resources/cr_elements/cr_slider/cr_slider.js (right): https://codereview.chromium.org/2587913007/diff/80001/ui/webui/resources/cr_elements/cr_slider/cr_slider.js#newcode61 ui/webui/resources/cr_elements/cr_slider/cr_slider.js:61: this.$.slider.snaps = ...
3 years, 12 months ago (2016-12-22 22:09:45 UTC) #14
dschuyler
https://codereview.chromium.org/2587913007/diff/80001/ui/webui/resources/cr_elements/cr_slider/cr_slider.js File ui/webui/resources/cr_elements/cr_slider/cr_slider.js (right): https://codereview.chromium.org/2587913007/diff/80001/ui/webui/resources/cr_elements/cr_slider/cr_slider.js#newcode61 ui/webui/resources/cr_elements/cr_slider/cr_slider.js:61: this.$.slider.snaps = numTicks < 10; On 2016/12/22 22:09:45, dschuyler ...
3 years, 12 months ago (2016-12-22 22:17:34 UTC) #15
stevenjb
https://codereview.chromium.org/2587913007/diff/80001/ui/webui/resources/cr_elements/cr_slider/cr_slider.js File ui/webui/resources/cr_elements/cr_slider/cr_slider.js (right): https://codereview.chromium.org/2587913007/diff/80001/ui/webui/resources/cr_elements/cr_slider/cr_slider.js#newcode61 ui/webui/resources/cr_elements/cr_slider/cr_slider.js:61: this.$.slider.snaps = numTicks < 10; On 2016/12/22 22:17:34, dschuyler ...
3 years, 12 months ago (2016-12-23 00:18:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2587913007/120001
3 years, 12 months ago (2016-12-23 00:19:00 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/204412)
3 years, 12 months ago (2016-12-23 01:05:31 UTC) #22
stevenjb
3 years, 12 months ago (2016-12-27 19:22:51 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2587913007/140001
3 years, 12 months ago (2016-12-27 19:23:10 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:140001)
3 years, 11 months ago (2016-12-27 20:53:34 UTC) #29
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:47:05 UTC) #31
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/26b1599ba3f24f4124d8d78227fb815dc1c2e696
Cr-Commit-Position: refs/heads/master@{#440785}

Powered by Google App Engine
This is Rietveld 408576698