summaryrefslogtreecommitdiff
path: root/panels/display
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2019-06-03 15:15:50 +0200
committerBenjamin Berg <bberg@redhat.com>2019-07-30 10:47:36 +0200
commitca684c2a7ca34ed3dcc1e559afb97780dbd68f13 (patch)
treef78354ef462ce7f520e4b1e72a78cf6f55af7c11 /panels/display
parent24ea7a562c50f7b3bde947ef61b2eef3f4d5c138 (diff)
downloadgnome-control-center-ca684c2a7ca34ed3dcc1e559afb97780dbd68f13.tar.gz
display: Update night light scale to new blackbody calculation
g-s-d was changed to use a better black body temperature calculation. This strongly affects the effect of the color temperature (the default is changed from 4000K to 2700K). Update the scale to represent a similar range to default even if the distribution on the scale is quite different.
Diffstat (limited to 'panels/display')
-rw-r--r--panels/display/cc-night-light-page.c8
-rw-r--r--panels/display/cc-night-light-page.ui4
2 files changed, 6 insertions, 6 deletions
diff --git a/panels/display/cc-night-light-page.c b/panels/display/cc-night-light-page.c
index 8fb276646..a6bfd73b9 100644
--- a/panels/display/cc-night-light-page.c
+++ b/panels/display/cc-night-light-page.c
@@ -618,19 +618,19 @@ cc_night_light_page_init (CcNightLightPage *self)
gtk_list_box_set_header_func (self->listbox, cc_list_box_update_header_func, NULL, NULL);
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
- 3000, GTK_POS_BOTTOM,
+ 1700, GTK_POS_BOTTOM,
_("More Warm"));
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
- 4000, GTK_POS_BOTTOM,
+ 2700, GTK_POS_BOTTOM,
NULL);
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
- 5000, GTK_POS_BOTTOM,
+ 3700, GTK_POS_BOTTOM,
NULL);
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
- 6000, GTK_POS_BOTTOM,
+ 4700, GTK_POS_BOTTOM,
_("Less Warm"));
self->cancellable = g_cancellable_new ();
diff --git a/panels/display/cc-night-light-page.ui b/panels/display/cc-night-light-page.ui
index 6c4e35b9a..1cd76a7d8 100644
--- a/panels/display/cc-night-light-page.ui
+++ b/panels/display/cc-night-light-page.ui
@@ -468,8 +468,8 @@
<signal name="value-changed" handler="dialog_time_to_value_changed_cb" object="CcNightLightPage" swapped="no" />
</object>
<object class="GtkAdjustment" id="adjustment_color_temperature">
- <property name="lower">3000</property>
- <property name="upper">6000</property>
+ <property name="lower">1700</property>
+ <property name="upper">4700</property>
<property name="step_increment">100</property>
<property name="page_increment">500</property>
<signal name="value-changed" handler="dialog_color_temperature_value_changed_cb" object="CcNightLightPage" swapped="no" />