SUMMARY There are a couple of cases where Plasma opens QQC2 menus. This includes, for example, the context menus of notification bodies (either popup or in history), which use Kirigami.SelectableLabel (in turn a QQC2 TextField) or the context menu of the notes widget, which intentionally uses QQC2 for desktop-style context menus in the editable text. In these menus, items can be disabled as usual if their action is not appropriate, such as copying text with no text selected. But this is not displayed properly – the icon takes on the usual gray color and does not have the hover effect, but the label is displayed in its usual presentation for active elements. This is a rather confusing user experience. STEPS TO REPRODUCE 1. Right-click a notification body, or the notes widget text OBSERVED RESULT Context menu does not have disabled context menus correctly grayed out. EXPECTED RESULT Context menu is correctly grayed out, including label. SOFTWARE/OS VERSIONS Operating System: Fedora Linux 41 KDE Plasma Version: 6.3.80 KDE Frameworks Version: 6.13.0 Qt Version: 6.8.2 Kernel Version: 6.13.5-200.fc41.x86_64 (64-bit) Graphics Platform: Wayland Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz Memory: 16 GiB of RAM (15.5 GiB usable) Graphics Processor: Intel® HD Graphics 520 ADDITIONAL INFORMATION Happens on master and stock Fedora 41. I have not been able to isolate a minimal test case that exhibits the issue. Switching QQC2 menu stuff to PC3 menu stuff in the notes widget fixes the issue there (but this is harder with Kirigami.SelectableLabel). I'm really not sure where the issue is (PC3? Breeze theme? QQC2-deskop-style?) so I'm filing it in plasmashell/general for sorting.
Possibly an issue in KirigamiPlasmaStyle?
A possibly relevant merge request was started @ https://invent.kde.org/plasma/libplasma/-/merge_requests/1290
Git commit f40f7459938667e8c66bb0585d8df5957a59a979 by Marco Martin. Committed on 24/03/2025 at 14:09. Pushed by mart into branch 'master'. Use Disabled Text color when needed With the same logic taken 1:1 from the plugin in qqc2-desktop-style, notice when the parent item or window is disabled, and change the text color accordingly M +54 -1 src/declarativeimports/kirigamiplasmastyle/plasmatheme.cpp M +2 -0 src/declarativeimports/kirigamiplasmastyle/plasmatheme.h M +2 -0 src/declarativeimports/plasmacomponents3/ComboBox.qml https://invent.kde.org/plasma/libplasma/-/commit/f40f7459938667e8c66bb0585d8df5957a59a979
Git commit f37ea393ff97ec5b8ac66ed33028e5c7b7539659 by Marco Martin. Committed on 24/03/2025 at 14:10. Pushed by mart into branch 'Plasma/6.3'. Use Disabled Text color when needed With the same logic taken 1:1 from the plugin in qqc2-desktop-style, notice when the parent item or window is disabled, and change the text color accordingly (cherry picked from commit f40f7459938667e8c66bb0585d8df5957a59a979) 1c3b580e Use Disabled Text color when needed 32e50e34 Apply 1 suggestion(s) to 1 file(s) 840c5643 fix combo text color Co-authored-by: Marco Martin <notmart@gmail.com> M +54 -1 src/declarativeimports/kirigamiplasmastyle/plasmatheme.cpp M +2 -0 src/declarativeimports/kirigamiplasmastyle/plasmatheme.h M +2 -0 src/declarativeimports/plasmacomponents3/ComboBox.qml https://invent.kde.org/plasma/libplasma/-/commit/f37ea393ff97ec5b8ac66ed33028e5c7b7539659