* Added brightness fade in - feature
which allows for gradual frontlight
brightness rise during alarm and
power nap ringing instead of turning
on with full brightness immediately.
* Fixed possibility to close
ringing power nap by long press
of back button.
Now the bedside lamp has lower priority
than the pre-wake up and main alarm. It means
that front light will be changed according
to alarm settings.
Fix front light brightness calculation for
pre-wake up and main alarm.
This commit provides the flowing fixes in display light functionality:
- Settings-path bug causing lack of display light settings on "fresh"
image. Solved with proper paths definition
- Invalid settings after phone restart. Solved with proper handling
of enums and booleans on the Event manager side.
- No turning off light just after turning on light functionality with
manual brightness setting in ApplicationSettings bug (required
another key press to start timer that turns off the light after 5s).
Solved by starting timer explicitly on Action::turnOn
- No turning off light just after turning on the phone bug (required
--as above --). Solved by starting timer explicitly on `Settings
ValueChange` callback with Action::turnOn.
- No autoMode until user entered `AppSettings::DisplayLight` Window.
Bug caused by curve parameters being provided by the window rather
than on the functionality back-end initialization.
Commit also provides some code cleanup