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

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

Issue 2921973002: Hide Night Light behind a flag (Closed)
Patch Set: James' comments Created 3 years, 7 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 | « chrome/browser/flag_descriptions.cc ('k') | chrome/browser/resources/settings/device_page/display.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/display.html
diff --git a/chrome/browser/resources/settings/device_page/display.html b/chrome/browser/resources/settings/device_page/display.html
index b4d7fbcc8f7b29bc47a468b051eee57a6576cf45..9e0676cfc1ca6b37cc568c0a2eb07ebb022295cf 100644
--- a/chrome/browser/resources/settings/device_page/display.html
+++ b/chrome/browser/resources/settings/device_page/display.html
@@ -202,32 +202,34 @@
</div>
<!-- Night Light Settings -->
- <div class="settings-box">
- <div class="start">
- <h2 id="nightLightLabel">$i18n{displayNightLightLabel}</h2>
- <div class="secondary">$i18n{displayNightLightText}</div>
+ <template is="dom-if" if="[[nightLightFeatureEnabled_]]" restamp>
+ <div class="settings-box">
+ <div class="start">
+ <h2 id="nightLightLabel">$i18n{displayNightLightLabel}</h2>
+ <div class="secondary">$i18n{displayNightLightText}</div>
+ </div>
+ <settings-toggle-button
+ id="nightLightToggleButton"
+ pref="{{prefs.ash.night_light.enabled}}"
+ aria-labelledby="nightLightLabel">
+ </settings-toggle-button>
</div>
- <settings-toggle-button
- id="nightLightToggleButton"
- pref="{{prefs.ash.night_light.enabled}}"
- aria-labelledby="nightLightLabel">
- </settings-toggle-button>
- </div>
- <div id="nightLightSettingsDiv"
- class="settings-box continuation start layout vertical">
- <!-- Color temperature slider -->
- <div class="settings-box embedded continuation">
- <div class="start textarea" id="colorTemperatureLabel">
- $i18n{displayNightLightTemperatureLabel}
+ <div id="nightLightSettingsDiv"
+ class="settings-box continuation start layout vertical">
+ <!-- Color temperature slider -->
+ <div class="settings-box embedded continuation">
+ <div class="start textarea" id="colorTemperatureLabel">
+ $i18n{displayNightLightTemperatureLabel}
+ </div>
+ <settings-slider id="colorTemperatureSlider"
+ aria-labelledby="colorTemperatureLabel" min="0" max="100"
+ scale="100" label-min="$i18n{displayNightLightTempSliderMinLabel}"
+ label-max="$i18n{displayNightLightTempSliderMaxLabel}"
+ pref="{{prefs.ash.night_light.color_temperature}}">
+ </settings-slider>
</div>
- <settings-slider id="colorTemperatureSlider"
- aria-labelledby="colorTemperatureLabel" min="0" max="100" scale="100"
- label-min="$i18n{displayNightLightTempSliderMinLabel}"
- label-max="$i18n{displayNightLightTempSliderMaxLabel}"
- pref="{{prefs.ash.night_light.color_temperature}}">
- </settings-slider>
</div>
- </div>
+ </template>
</template>
<script src="display.js"></script>
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | chrome/browser/resources/settings/device_page/display.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698