| Summary: | Highlighted BasicListItem implementations sometimes have invisible text and icons | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-qqc2-desktop-style | Reporter: | Nicolas Fella <nicolas.fella> |
| Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | ahiemstra, aleixpol, bugseforuns, kde, nate, noahadvs, notmart |
| Priority: | NOR | Keywords: | qt6, regression |
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | 9edcfd832416532e6c49b4617ebacae11024af49 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | Screenshot | ||
|
Description
Nicolas Fella
2023-08-13 21:54:33 UTC
Created attachment 160938 [details]
Screenshot
Can reproduce on neon unstable. System Monitor is also affected. Can reproduce in both. Looks like the background color is missing for the highlighted state. Likely a regression following the styling changes to make BasicListItem inherit from ItemDelegate made a few weeks ago. Will investigate. The proximate cause appears to be because https://invent.kde.org/frameworks/kirigami/-/commit/adf36c255f45ca55f98eafe5cd10642c417b4b45 migrated to using ItemDelegate styling without migrating any of the more sophisticated list item background code to our ItemDelegate styling. As a result we lost separator lines, alternating background colors, and, apparently, the background color for the highlighted list item. :/ Commented in https://invent.kde.org/frameworks/kirigami/-/merge_requests/1175. do those items have the highlighted property set to true? if so, that's a qqc2-desktop-style bug. ok, so, the change to do is checked->highlighted doing that in kirigami global drawer fixes most of them already. it remains one thing to do in discover. other things like systemsettings already do the right thing Indeed, this seems to be an issue in /home/nate/kde/src/kirigami/src/controls/private/GlobalDrawerActionItem.qml, which has a custom AbstractListItem subclass rather than just using BasicListItem. I'll see if I can fix it, or port to BasicListItem if possible. Fixed already by Marco Martin with 9edcfd832416532e6c49b4617ebacae11024af49. |