D5928: Introducing Night Color - KWin's native blue light filter at nighttime

David Edmundson noreply at phabricator.kde.org
Fri May 26 17:45:39 UTC 2017


davidedmundson added a comment.


  As for your comments:
  
  > The first one is, that the fading phases generate much DBus traffic, as you said. To solve this we would need to do the fading in KWin. For that we need timers, at least one. But it would make sense to have two timers, one for quick adjustments and one for long fades. >Because imagine the following:
  
  Not really. With any gradient or animation, you specify: startpoint, startvalue, endpoint, endvalue
  
  With that your "imagine the following" is easily solved, if you get a new sunset time or filter value you can immediately deduce the correct "current" value.
  
  (talking of which, look at QVariantAnimation instead of your quicksteps timer, it basically does the same thing, but wrapped away. Set the duration to the entire fade time, then use setCurrentTime on suspend)
  Also you shouldn't fear DBus traffic so much. Even if it was updating every second it wouldn't to be a problem.
  
  The suspend argument makes sense...though I'm not sure you can really use that argument whilst you currently have a call to logind in the code.

REPOSITORY
  R108 KWin

REVISION DETAIL
  https://phabricator.kde.org/D5928

To: subdiff, #kwin
Cc: graesslin, davidedmundson, plasma-devel, kwin, ZrenBot, spstarr, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, eliasp, sebas, apol, mart, hein, lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170526/87217bae/attachment.html>


More information about the Plasma-devel mailing list