Settings WebUI: add 0 as a valid minimum font size and show tick labels on font sliders
The preference minimum font size has a default value of 0. The preference is exposed in the UI on the appearance fonts page in settings via a slider. The allowable values for the preference excluded the default value of 0. The settings slider code was changed to ensure the value of the preference was also an allowable value. When the font settings page loaded, the preference was then updated to the closest allowable value. If the preference is set to the default value, the closest allowable value is 6px. This change adds 0 as an allowable value which will allow a user to turn off the effects of a minimum font size. Bug: 944002 Change-Id: Ifc1c72e3673eef60e62f3edecd07ccba6b67928a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1573238 Commit-Queue: Esmael El-Moslimany <aee@chromium.org> Reviewed-by:Demetrios Papadopoulos <dpapad@chromium.org> Cr-Commit-Position: refs/heads/master@{#652297}
Showing
Please register or sign in to comment