Allow overriding the night light schedule
[This issue report has been re-written, so it's clearer.]
This change is needed for the new quick settings design, which is landing for GNOME 43.
Currently you can turn night light on and off, and nothing happens. This isn't great, particularly for the quick settings toggle. If Night Light is off and you press the Night Light button, you expect it to turn on.
The way I'd expect it to work is for the schedule to operate independently of the on/off button. Users would be able to turn the feature on and off as they want, while the schedule carries on running. The schedule would be like a timer which changes the state of the night light on/off setting at predetermined times of the day.
In effect, we'd have 4 settings:
- Night light state - on/off
- Schedule state - on/off
- Scheduled on time
- Scheduled off time
The state would change as follows:
Current State | Event | Resulting State |
---|---|---|
Off | User turns on | On |
Off | Scheduled on time | On |
Off | Scheduled off time | Off |
On | User turns off | Off |
On | Scheduled on time | On |
On | Scheduled off time | Off |
In UI terms, this will just require the addition of an "off" option to the schedule setting. More changes will be required on the backend, though.