https://bugs.kde.org/show_bug.cgi?id=524247
Bug ID: 524247
Summary: No way to control desktop widget background opacity
Classification: Plasma
Product: plasmashell
Version First 6.6.6
Reported In:
Platform: Kubuntu
OS: Linux
Status: REPORTED
Severity: wishlist
Priority: NOR
Component: Containment
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: 1.0
SUMMARY
There is no setting anywhere in Plasma for the opacity of a desktop widget's
background frame.
Desktop widgets always take the StandardBackground path in
BasicAppletContainer.qml:
if (effectiveBackgroundHints & TranslucentBackground) return
"widgets/translucentbackground";
else if (effectiveBackgroundHints & StandardBackground) return
"widgets/background";
so the frame is whatever widgets/background.svgz draws, at full opacity.
WHAT I AM ASKING FOR
A per-widget or theme-level opacity control for the applet background frame.
AN IMPLEMENTATION CONSTRAINT WORTH KNOWING UP FRONT
The obvious implementation -- render the frame as usual, then wrap it in a
single
opacity group -- does not work. Ancestor opacity is not applied when Qt renders
an SVG by element id, and rendering by element id is how KSvg draws frame
parts.
The only approach I found that does work is setting an opacity attribute on
each
of the nine <g> elements individually: center, top, bottom, left, right, and
the
four corners. The shadow-* elements are best left opaque, or panels stop
reading
against a busy wallpaper.
I mention it because it rules out the cheapest version of this feature, and it
took a while to establish.
WORKAROUND, FOR ANYONE WHO LANDS HERE
Shadow the theme into ~/.local/share/plasma/desktoptheme/ and patch those nine
elements in widgets/background.svgz by hand. The cost is real rather than
cosmetic: while the shadow copy exists, distro updates to that theme stop
reaching you.
Note also that translucent/widgets/background.svgz, shipped by every theme, is
the obvious first thing to patch and appears to be referenced by nothing, so
patching it has no effect. Reported separately as bug 524246.
Operating System: Ubuntu 26.04 LTS (Kubuntu)
KDE Plasma Version: 6.6.6
KDE Frameworks Version: 6.24.0
Qt Version: 6.10.2
Graphics Platform: Wayland
--
You are receiving this mail because:
You are watching all bug changes.