Bug 504117

Summary: Switch unable to process margin graphics that contain 0% opacity
Product: [Frameworks and Libraries] libplasma Reporter: Andres Betts <anditosan1000>
Component: componentsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: nate, notmart, qydwhotmail
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=504116
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: visiblebackgroundtest
Switch WITH transparency
Swith with 0 opacity

Description Andres Betts 2025-05-12 19:37:09 UTC
Created attachment 181226 [details]
visiblebackgroundtest

When design requires that the circle button inside the switch.svg file is smaller than the background, the system does not render transparent backgrounds.

I am using a visible circle and another invisible circle to act as margins and bring the visible circle inside the switch background in a way that looks symmetrical. However, Plasma doesn't like that the background is 0% transparency and does not render the graphic.

Discussed this issue with @ndavis
Comment 1 Nate Graham 2025-05-13 19:12:21 UTC
Could you attach an SVG or Plasma theme that shows the issue, so we can test with it?
Comment 2 Andres Betts 2025-05-13 19:39:58 UTC
Created attachment 181255 [details]
Switch WITH transparency
Comment 3 Andres Betts 2025-05-13 19:40:28 UTC
Created attachment 181256 [details]
Swith with 0 opacity