Bug 504117 - Switch unable to process margin graphics that contain 0% opacity
Summary: Switch unable to process margin graphics that contain 0% opacity
Status: REPORTED
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: components (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-12 19:37 UTC by Andres Betts
Modified: 2025-05-13 19:40 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
visiblebackgroundtest (2.48 KB, image/jpeg)
2025-05-12 19:37 UTC, Andres Betts
Details
Switch WITH transparency (2.67 KB, image/svg+xml)
2025-05-13 19:39 UTC, Andres Betts
Details
Swith with 0 opacity (2.38 KB, image/svg+xml)
2025-05-13 19:40 UTC, Andres Betts
Details

Note You need to log in before you can comment on or make changes to this bug.
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