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

Unified Diff: chrome/browser/resources/settings/device_page/night_light_slider.html

Issue 2950393002: [MD-Settings][Night Light] CL10: Add RTL languages support to the slider (Closed)
Patch Set: @private Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/settings/device_page/night_light_slider.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/device_page/night_light_slider.html
diff --git a/chrome/browser/resources/settings/device_page/night_light_slider.html b/chrome/browser/resources/settings/device_page/night_light_slider.html
index 78a92c7b5d74ba14a05b1904f8d29a0b25901bcf..13bf493a49a6108592cd7ecf65ccef9873fa51c1 100644
--- a/chrome/browser/resources/settings/device_page/night_light_slider.html
+++ b/chrome/browser/resources/settings/device_page/night_light_slider.html
@@ -166,11 +166,21 @@
</div>
</div>
<div id="legendContainer">
- <div style="left: 0%;">[[getLocaleTimeString_(18, 0)]]</div>
- <div style="left: 25%;">[[getLocaleTimeString_(0, 0)]]</div>
- <div style="left: 50%;">[[getLocaleTimeString_(6, 0)]]</div>
- <div style="left: 75%;">[[getLocaleTimeString_(12, 0)]]</div>
- <div style="left: 100%;">[[getLocaleTimeString_(18, 0)]]</div>
+ <div style="[[getLegendStyle_(0, isRTL_)]]">
+ [[getLocaleTimeString_(18, 0)]]
+ </div>
+ <div style="[[getLegendStyle_(25, isRTL_)]]">
+ [[getLocaleTimeString_(0, 0)]]
+ </div>
+ <div style="[[getLegendStyle_(50, isRTL_)]]">
+ [[getLocaleTimeString_(6, 0)]]
+ </div>
+ <div style="[[getLegendStyle_(75, isRTL_)]]">
+ [[getLocaleTimeString_(12, 0)]]
+ </div>
+ <div style="[[getLegendStyle_(100, isRTL_)]]">
+ [[getLocaleTimeString_(18, 0)]]
+ </div>
</div>
<div id="dummyRippleContainer" hidden></div>
</div>
« no previous file with comments | « no previous file | chrome/browser/resources/settings/device_page/night_light_slider.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698