https://bugs.kde.org/show_bug.cgi?id=463685

--- Comment #2 from Alexis Murzeau <amub...@gmail.com> ---
Created attachment 154937
  --> https://bugs.kde.org/attachment.cgi?id=154937&action=edit
Patch1: icon fading patched to avoid the darkening. See result in
plasma-framework-icon-fading-split-animation-patch1.mp4

Added patch containing the modified code that lead to "Video of the icon fading
patched to avoid the darkening. Animation slowed down x5. Patch1. (86.17 KB,
video/mp4)".

The resulting animation is still not perfect, as in the middle of the
animation, semi-transparent pixels are duplicated (between of 2 images being
rendered with 100% opacity) and we can see that the multimedia icon's border
are a bit modified.


A visually perfect solution would be to do the rendering in this order using an
intermediate image:
- Blend the new image over the old image into an intermediate image with
varying opacity for an animated fading
- Render the resulting image as actually done by QtQuick with a fixed 100%
opacity

But I think that would require using QPainter and changing the whole QSGNode
image at every updatePaintNode call, leading to poor performance I guess.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to