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

            Bug ID: 463685
           Summary: Opaque icons are semi transparent in the middle of a
                    fade transition animation
    Classification: Frameworks and Libraries
           Product: frameworks-plasma
           Version: 5.101.0
          Platform: Debian unstable
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: components
          Assignee: plasma-b...@kde.org
          Reporter: amub...@gmail.com
                CC: m...@ratijas.tk, notm...@gmail.com
  Target Milestone: ---

Created attachment 154935
  --> https://bugs.kde.org/attachment.cgi?id=154935&action=edit
Video of the icon fading between 2 images (first between play/pause, then
between normal and active (hovered) states), animation slowed down x5

SUMMARY

When using plasma-desktop with icon task manager and using a dark mode theme,
when hovering the tasks icons, the animation does this:
 - Start with the existing "normal state" image of the icon
 - Fade to the "active state" highlighted image of the icon by fading the
opacity of the existing image from 1.0 to 0.0 and the active image from 0.0 to
1.0 simultaneously
 - End with only the active image opaque and the existing

The issue is that the effect is this:
 - Start the animation
 - Darken the existing image (related to dark background)
 - Lighten the image back to reach the active state image

The darkening looks like icons are flickering when the animation is fast.

The cause of this darkening is that at 50% of the animation time, both the
normal state image and the active state image are 50% opaque, which makes the
background visible.
As the background is dark when using a dark theme, this make the icons darker.
The QML rendering does this in this order:
- Render the background
- Render the normal state image at 50% opacity (so there are 50% of background
color rendered at this step)
- Render the active state image at 50% opacity (so there are 25% of background
color rendered at this step)

See video in attachment (plasma-framework-icon-fading.mp4) of this when
multimedia player icon changes between play / pause and then when it is hovered
by the mouse (which changes the icon between normal and active states).
The animation is slowed down to make the icon darkening more visible.


SOFTWARE/OS VERSIONS

Operating System: Debian GNU/Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.0.0-6-amd64 (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.6 Gio of RAM
Graphics Processor: AMD Radeon RX 580 Series
Manufacturer: Micro-Star International Co., Ltd
Product Name: MS-7B86
System Version: 4.0

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

Reply via email to