Bug 460098

Summary: PlasmaCore.IconItem doesn't update texture after switching from Oxygen theme
Product: [Frameworks and Libraries] libplasma Reporter: ratijas <me>
Component: libplasmaAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: me, nate, notmart
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description ratijas 2022-10-07 15:37:37 UTC
SUMMARY

After changing Plasma Style to Oxygen, Kickoff icon in panel will no longer change until Plasma shell is restarted.

Seems like a caching issue, or flacky error handling. Oxygen doesn't provide "start-here-kde.svg", so the icon I'm seeing after applying this theme is a colorful fallback from Breeze. However, once applied it won't reload on theme change anymore.

STEPS TO REPRODUCE
0. Open System Settings -> Appearance -> Plasma Style KCM
1. Select Ark Dark theme (install it from "Get New Plasma Styles…" if you don't have it yet) and apply it.
2. Select Oxygen and apply it.
3. Select Breeze or Ark Dark and apply again.

OBSERVED RESULT
After step 1 the icon changes as expected: Ark Dark provides an svg for it.
After step 2 the icon changes to a colorful Plasma icon (white arrow, three red-green-blue dots).
After step 3 the icon doesn't change.

EXPECTED RESULT
The icon must always reload when a theme changes.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE: git-master
Qt Version: 5.15.6
Kernel Version: 5.19.9-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970M/PCIe/SSE2
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: G752VT
System Version: 1.0
Comment 1 Nate Graham 2023-10-12 18:24:59 UTC
PlasmaCore.IconItem has been removed for Plasma 6 and replaced with Kirigami.Icon. Can you still reproduce the issue with current git master, Ivan? I cannot.
Comment 2 Bug Janitor Service 2023-10-27 03:45:40 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 ratijas 2023-10-27 12:29:37 UTC
Yeah, somehow accidentally fixed by porting to KSvg and dropping separate Plasma icon themes.