Skip to content
Commit 9e28cda8 authored by Jakob Petsovits's avatar Jakob Petsovits
Browse files

Hardcode brightness animation duration/threshold

PowerDevilSettings includes brightness animation duration and
threshold settings, which are used in PowerDevilUPowerBackend.
Those settings are not exposed via KCM, but could have been
manually set by the user in the powerdevilrc config file.

In a later commit, we want to parameterize the global settings
object and stop relying on profile generation. But the backend
isn't supposed to have full knowledge of parameterization flags
that's available to PowerDevil::Core.

This commit removes functionality to read the backend-specific
brightness settings from the config file, and instead hardcodes
the default values in PowerDevilUPowerBackend directly.
This gives us flexibility to change PowerDevilSettings for
sole use in PowerDevil::Core and the global config KCM later on.

Any manually added config entries will remain in powerdevilrc,
so we could always decide to bring back configurability of
brightness animation parameters if anyone actually misses this.
parent 068c676c
Pipeline #478883 passed with stage
in 1 minute and 41 seconds
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