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.
This commit is contained in:
parent
24ea7a562c
commit
ca684c2a7c
2 changed files with 6 additions and 6 deletions
|
@ -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_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),
|
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
|
||||||
3000, GTK_POS_BOTTOM,
|
1700, GTK_POS_BOTTOM,
|
||||||
_("More Warm"));
|
_("More Warm"));
|
||||||
|
|
||||||
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
|
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
|
||||||
4000, GTK_POS_BOTTOM,
|
2700, GTK_POS_BOTTOM,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
|
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
|
||||||
5000, GTK_POS_BOTTOM,
|
3700, GTK_POS_BOTTOM,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
|
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
|
||||||
6000, GTK_POS_BOTTOM,
|
4700, GTK_POS_BOTTOM,
|
||||||
_("Less Warm"));
|
_("Less Warm"));
|
||||||
|
|
||||||
self->cancellable = g_cancellable_new ();
|
self->cancellable = g_cancellable_new ();
|
||||||
|
|
|
@ -468,8 +468,8 @@
|
||||||
<signal name="value-changed" handler="dialog_time_to_value_changed_cb" object="CcNightLightPage" swapped="no" />
|
<signal name="value-changed" handler="dialog_time_to_value_changed_cb" object="CcNightLightPage" swapped="no" />
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkAdjustment" id="adjustment_color_temperature">
|
<object class="GtkAdjustment" id="adjustment_color_temperature">
|
||||||
<property name="lower">3000</property>
|
<property name="lower">1700</property>
|
||||||
<property name="upper">6000</property>
|
<property name="upper">4700</property>
|
||||||
<property name="step_increment">100</property>
|
<property name="step_increment">100</property>
|
||||||
<property name="page_increment">500</property>
|
<property name="page_increment">500</property>
|
||||||
<signal name="value-changed" handler="dialog_color_temperature_value_changed_cb" object="CcNightLightPage" swapped="no" />
|
<signal name="value-changed" handler="dialog_color_temperature_value_changed_cb" object="CcNightLightPage" swapped="no" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue