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



commit 2c9b24a6b5604027a3549fd7a5304f333fb4daa2
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-dialog.c  | 8 ++++----
 panels/display/cc-night-light-dialog.ui | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/panels/display/cc-night-light-dialog.c b/panels/display/cc-night-light-dialog.c
index 906815537..6e4b92e87 100644
--- a/panels/display/cc-night-light-dialog.c
+++ b/panels/display/cc-night-light-dialog.c
@@ -643,19 +643,19 @@ cc_night_light_dialog_init (CcNightLightDialog *self)
   gtk_widget_init_template (GTK_WIDGET (self));
 
   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-dialog.ui b/panels/display/cc-night-light-dialog.ui
index 69d77d20f..e3ea90de8 100644
--- a/panels/display/cc-night-light-dialog.ui
+++ b/panels/display/cc-night-light-dialog.ui
@@ -533,8 +533,8 @@
     <signal name="value-changed" handler="dialog_time_to_value_changed_cb" object="CcNightLightDialog" 
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="CcNightLightDialog" swapped="no" />


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