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

            Bug ID: 520235
           Summary: KStatusNotifierItem::setOverlayIconByPixmap makes the
                    tray icon all blurry and the overlay icon clipped out
    Classification: Frameworks and Libraries
           Product: frameworks-kstatusnotifieritem
      Version First 6.4.0
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 192337
  --> https://bugs.kde.org/attachment.cgi?id=192337&action=edit
Capture of the tray icon generated by KStatusNotifierItem::setOverlayIconByName
looking good

DESCRIPTION

While trying to implement the tray icon on Linux for Thunderbird[1], I think I
discovered a bug in KStatusNotifierItem. Using
KStatusNotifierItem::setOverlayIconByPixmap to overlay a badge on top of the
tray icon makes this tray icon all blurry. Also the overlay icon seems
misplaced and slightly clips through the edges of the tray icon. I attached two
captures of a tray icon showing this problem to this issue and created a small
C++ project to demonstrate the issue.

[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1946946

STEPS TO REPRODUCE
1. Clone https://github.com/christophehenry/plasma_overlay_icon_pixmap_bug
2. Compile and run main.cpp
3. Click on the button that appeared to switch between
KStatusNotifierItem::setOverlayIconByPixmap and
KStatusNotifierItem::setOverlayIconByName implementation.
OBSERVED RESULT

There's a difference between KStatusNotifierItem::setOverlayIconByName and
KStatusNotifierItem::setOverlayIconByPixmap implementations. In particular,
when using KStatusNotifierItem::setOverlayIconByPixmap the tray icon appears
all blurry and the overlay icon clipped out

EXPECTED RESULT

Tray icon generated by KStatusNotifierItem::setOverlayIconByPixmap should look
exactly the same as tray icon generated by
KStatusNotifierItem::setOverlayIconByName.


SOFTWARE/OS VERSIONS

Operating System: Fedora Linux 43
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.26.0
Qt Version: 6.10.3

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

Reply via email to