Skip to content

Version 1.1.0

Choose a tag to compare

@Abduction-Lamp Abduction-Lamp released this 12 Mar 21:22
· 142 commits to master since this release

Added

  • Customizable colors — 5 new published properties (TrackFrameColor, TrackColorOff, TrackColorOn, ThumbColorOff, ThumbColorOn) to override the default WinUI 3 color scheme. Set to clNone (default) to use built-in colors
  • Text label — optional text next to the toggle with 5 new properties (ShowText, TextOn, TextOff, TextPosition, TextSpacing) and a new TTextPosition enum (tpLeft, tpRight). The component auto-adjusts its width based on text content
  • Font property — re-published Font for text label rendering via Object Inspector
  • DUnitX tests — 17 unit tests covering color properties, text properties, auto-sizing, and input validation

Fixed

  • Click area is now restricted to the track — clicking the text label does not toggle the switch
  • Component correctly recalculates bounds after DPI scaling (ChangeScale override)
  • Negative TextSpacing values are clamped to 0
  • Test runner always waits for user input before closing the console window
  • FastMM4 is now conditionally compiled ({$IFDEF FASTMM})

Installation

  1. Open ToggleSwitch-PG.groupproj in Delphi IDE
  2. In Project Manager: right-click ToggleSwitch.bpl → Compile → Install
  3. Done — use TFluentToggleSwitch in any project

Full Changelog: v1.0.1...v1.1.0