Repository navigation
Version 1.3.0
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; settingCheckedin 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