Bug 515381

Summary: Clipboard widget: selected item text invisible on Wayland (OpacityMask not rendering)
Product: [Plasma] plasmashell Reporter: dlmdokms2
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: akselmo, qydwhotmail
Priority: NOR    
Version First Reported In: 6.5.5   
Target Milestone: 1.0   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: invisible text on selected item

Description dlmdokms2 2026-02-01 12:15:22 UTC
Created attachment 189131 [details]
invisible text on selected item

SUMMARY
Clipboard widget: selected item text invisible on Wayland (OpacityMask not rendering)
STEPS TO REPRODUCE

Use KDE Plasma 6.5.5 on Wayland with default Breeze theme
Copy some text to the clipboard
Open the clipboard widget (Meta+V or click the system tray icon)
Hover over or navigate to any item in the clipboard history list

OBSERVED RESULT
The currently selected/highlighted item shows completely blank — no text is visible. Only the blue highlight background and the action buttons on the right are shown. Non-selected items display their text correctly.
EXPECTED RESULT
Selected items should display their text content, either in the normal color or using highlightedTextColor for contrast against the selection background.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma:

KDE Plasma Version: 6.5.5
Wayland session
Breeze theme (also tested with other themes — same issue)

ADDITIONAL INFORMATION
After debugging, I found the root cause:
The QML files are loaded from Qt resources compiled into libklipperplugin.so (via prefer :/qt/qml/org/kde/plasma/private/clipboard/ in the qmldir file). The OpacityMask (from Qt5Compat.GraphicalEffects) used for the text fade effect on selected items doesn't render properly — it produces a completely transparent result.
In ClipboardItemDelegate.qml, the label is hidden when selected (visible: !menuItem.ListView.isCurrentItem) and replaced by an OpacityMask that should show the same content with a gradient fade. But the mask renders nothing.
Workaround:

Edit /usr/lib/x86_64-linux-gnu/qt6/qml/org/kde/plasma/private/clipboard/qmldir — comment out the line:
#prefer :/qt/qml/org/kde/plasma/private/clipboard/
Edit /usr/lib/x86_64-linux-gnu/qt6/qml/org/kde/plasma/private/clipboard/ClipboardItemDelegate.qml:

Change label.visible to true (around line 137)
Change labelMask.visible to false (around line 117)


Restart plasmashell

This disables the fade effect but makes text visible. The issue may be that OpacityMask from Qt5Compat.GraphicalEffects has a rendering bug on Wayland, or the QML compiled into the .so differs from the shipped source files.
Comment 1 Akseli Lahtinen 2026-02-02 13:43:30 UTC
I am unable to reproduce this

Operating System: KDE Linux 2026-02-01
KDE Plasma Version: 6.6.80
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2
Kernel Version: 6.18.7-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600