| Summary: | Widget-specific icons are mostly no longer seen (e.g. in Widget Explorer and Alternatives dialog) | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Nate Graham <nate> |
| Component: | general | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | evgeniyharchenko.dev, kde, nicolas.fella |
| Priority: | NOR | Keywords: | regression |
| Version First Reported In: | git-stable-Plasma/6.1 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/175b6b6ce3affec08c0325b9e793513491eb380e | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: |
Missing in Alternatives dialog
Mostly missing in Widget Explorer |
||
|
Description
Nate Graham
2024-06-10 14:47:10 UTC
Created attachment 170345 [details]
Mostly missing in Widget Explorer
"Almost all" seems a bit of an overstatement. As far as I can tell it affects only the three launcher icons? In Widget explorer, only the Activity Pager and Folder View widgets show their widget-specific icons. All the others don't get shown. You can open up Icon Explorer and search for "org.kde.plasma." to see all the other icons that should be shown there but aren't. Okay, I see where the change comes from. It's the inversion of the
if (QIcon::hasThemeIcon(info.pluginId())) {
setIcon(QIcon::fromTheme(info.pluginId()));
} else if (!m_info.iconName().isEmpty()) {
setIcon(QIcon::fromTheme(info.iconName()));
}
check. Now the Icon= value from the metadata is perferred over the plugin id as icon name
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4442 Git commit 3fc0ef5ef629c17ae354ffffa333446ce2eaf1c9 by Fushan Wen, on behalf of Nicolas Fella. Committed on 13/06/2024 at 07:06. Pushed by fusionfuture into branch 'master'. [widgetsexplorer] Prefer applet id as icon name again We have special icons with the applet id as name bd4f0684e089f2585264fd9e46d245c20fd05004 changed the logic to prefer the icon name from the metadata again, but we want to use those special icons instead M +4 -6 components/shellprivate/widgetexplorer/plasmaappletitemmodel.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/3fc0ef5ef629c17ae354ffffa333446ce2eaf1c9 Git commit 175b6b6ce3affec08c0325b9e793513491eb380e by Fushan Wen. Committed on 13/06/2024 at 07:07. Pushed by fusionfuture into branch 'Plasma/6.1'. [widgetsexplorer] Prefer applet id as icon name again We have special icons with the applet id as name bd4f0684e089f2585264fd9e46d245c20fd05004 changed the logic to prefer the icon name from the metadata again, but we want to use those special icons instead (cherry picked from commit 3fc0ef5ef629c17ae354ffffa333446ce2eaf1c9) Co-authored-by: Nicolas Fella <nicolas.fella@gmx.de> M +4 -6 components/shellprivate/widgetexplorer/plasmaappletitemmodel.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/175b6b6ce3affec08c0325b9e793513491eb380e |