feat(kcm): control scale

Authored by romangg on Jan 6 2020, 10:40 PM.

Description

feat(kcm): control scale

Summary:
Some backends might not transmit scale information. For these save the scale
value in the control file on change.

Loading it from there is unproblematic in all three cases:

  • No scale value in file. Then falls back to libkscreen's value (default = 1).
  • Scale values are the same, that means backend transmits scale.
  • Backend does not transmit and scale is different, then prefer control file.

Reviewers: Plasma

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D26481

Details

Committed
romanggJan 7 2020, 3:10 PM
Differential Revision
D26481: feat(kcm): control scale
Parents
R104:b3a8dbbbb590: feat: use Control and logical size APIs for replicas
Branches
Unknown
Tags
Unknown