Commit 65232b44 authored by TestingPlant's avatar TestingPlant
Browse files

display: Increase range of night light intensity

The current intensity range is from 1700 to 4700. However, users may prefer a warmer or less warm light.

This increases the range to 1000 to 6500.

Fixes: #1364
parent 1e917d00
Pipeline #283581 passed with stages
in 4 minutes and 37 seconds
......@@ -623,19 +623,27 @@ 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),
1700, GTK_POS_BOTTOM,
1000, GTK_POS_BOTTOM,
_("More Warm"));
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
2700, GTK_POS_BOTTOM,
2100, GTK_POS_BOTTOM,
NULL);
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
3700, GTK_POS_BOTTOM,
3200, GTK_POS_BOTTOM,
NULL);
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
4700, GTK_POS_BOTTOM,
4300, GTK_POS_BOTTOM,
NULL);
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
5400, GTK_POS_BOTTOM,
NULL);
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
6500, GTK_POS_BOTTOM,
_("Less Warm"));
self->cancellable = g_cancellable_new ();
......
......@@ -434,10 +434,10 @@
<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">1700</property>
<property name="upper">4700</property>
<property name="step_increment">100</property>
<property name="page_increment">500</property>
<property name="lower">1000</property>
<property name="upper">6500</property>
<property name="step_increment">150</property>
<property name="page_increment">750</property>
<signal name="value-changed" handler="dialog_color_temperature_value_changed_cb" object="CcNightLightPage" swapped="no" />
</object>
</interface>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment