[gnome-control-center/benzea/update-night-light-scale: 87/87] display: Update night light scale to new blackbody calculation



commit ca684c2a7ca34ed3dcc1e559afb97780dbd68f13
Author: Benjamin Berg <bberg redhat com>
Date:   Mon Jun 3 15:15:50 2019 +0200

    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.

 panels/display/cc-night-light-page.c  | 8 ++++----
 panels/display/cc-night-light-page.ui | 4 ++--
 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" />


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]