Bug 504116

Summary: Switch shows background when using a circle button smaller than background
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=504117
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: switchbackground
switch

Description Andres Betts 2025-05-12 19:33:39 UTC
Created attachment 181224 [details]
switchbackground

Issue appears when the design requires that there is a circle button in the switch is smaller than the switch background. For some reason, the inactive state uses margins that come from the active background state. Meaning that in the inactive state, the transparent background around the margins of the circle show the active background around margins.

Discussed this issue in the VDG channel and with @ndavis
Comment 1 Nate Graham 2025-05-13 19:09:54 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:41:24 UTC
Created attachment 181257 [details]
switch

You should see it using this svg