Skip to content

Version 1.3.0

Choose a tag to compare

@Abduction-Lamp Abduction-Lamp released this 09 Sep 23:03
· 116 commits to master since this release
8baca61

What's Changed

Visuals and interaction now match the Windows 11 ToggleSwitch (WinUI 3, Light theme). See #5.

Added

  • Thumb dragging — the thumb can be dragged within the track; releasing it past the middle switches the state, otherwise it snaps back
  • Pressed thumb — stretches into a 17×14 pill hugging the track edge, as in WinUI 3

Changed

  • Off-state colors — translucent fill, stroke and thumb from the WinUI 3 Light theme, blended over the parent background; hover darkens the track fill instead of the stroke and thumb
  • Transition — Off and On tracks cross-fade instead of interpolating colors
  • Track stroke — centered on the outline and scaled with DPI (was a fixed 1 px inset stroke)
  • OnChange — fires only when the user toggles the switch; setting Checked in code no longer raises it
  • Click area — clicking anywhere on the component, including the text label, toggles it and focuses the control
  • DPI — sizes are recomputed from the base constants on every DPI change

Removed

  • Space and Enter no longer toggle the switch
  • Focus rectangle

Docs

  • Added CHANGELOG.md
  • README updated for the new behavior

Full Changelog: v1.2.0...v1.3.0