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

            Bug ID: 488521
           Summary: Incorrect rendering of Mattermost app svg icon in
                    Plasma 6
    Classification: Plasma
           Product: plasmashell
           Version: 6.0.5
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Panel
          Assignee: plasma-b...@kde.org
          Reporter: dm.vl.iva...@gmail.com
                CC: niccolo.venera...@gmail.com
  Target Milestone: 1.0

Created attachment 170514
  --> https://bugs.kde.org/attachment.cgi?id=170514&action=edit
Mattermost app's icon - svg file

SUMMARY

I'm running OpenSUSE Tumbleweed with Plasma 6/Wayland and at some point a while
back I noticed that the svg icon of a Mattermost app installed via flatpak
started to render incorrectly: for some reason the white part of the icon in
the middle doesn't render properly. I thought that it might be an issue with
Qt6 svg rasterizer but a prototype PyQt6 app demonstrating the icon in a widget
renders this particular icon correctly so the issue must be somewhere on the
Plasma 6 side.

STEPS TO REPRODUCE
1. Install Mattermost app via flatpak (com.mattermost.Desktop, version 5.8.1)
2. Add Mattermost app icon to a panel or just observe the app's svg icon via
Dolphin in folder
/var/lib/flatpak/app/com.mattermost.Desktop/current/active/files/share/icons/hicolor/scalable/apps/com.mattermost.Desktop.svg

OBSERVED RESULT

The app's icon is not rendered correctly - the white curvy part in the middle
is seemingly rendered in wrong color.

EXPECTED RESULT

The app's icon is rendered correctly

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: OpenSUSE Tumbleweed 20240613, Wayland session
(available in About System)
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION

The app's icon is properly rendered in Inkscape and in the following PyQt6
prototype app:

from PyQt6.QtGui import QPixmap
from PyQt6.QtWidgets import QApplication, QMessageBox, QLabel

app = QApplication([])
msg = QMessageBox()
pixmap =
QPixmap("/var/lib/flatpak/app/com.mattermost.Desktop/current/active/files/share/icons/hicolor/scalable/apps/com.mattermost.Desktop.svg")
label = QLabel()
label.setPixmap(pixmap)
msg.layout().addWidget(label)
msg.exec()

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

Reply via email to