Bug 504116 - Switch shows background when using a circle button smaller than background
Summary: Switch shows background when using a circle button smaller than background
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:33 UTC by Andres Betts
Modified: 2025-05-13 19:41 UTC (History)
3 users (show)

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


Attachments
switchbackground (248.89 KB, image/png)
2025-05-12 19:33 UTC, Andres Betts
Details
switch (2.67 KB, image/svg+xml)
2025-05-13 19:41 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: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