HandyControl icon indicating copy to clipboard operation
HandyControl copied to clipboard

[Feature request] ToggleButton style where only the thumb color changes

Open Symbai opened this issue 2 years ago • 3 comments

Describe the solution you'd like I would like a style similar to the ToggleSwitch but where the thumb color changes instead. Something like this (just that green thumb should be on right side indicating the ON state) image

Symbai avatar Dec 09 '21 10:12 Symbai

we dont need new style, you can override PrimaryBrush

ghost1372 avatar Dec 09 '21 13:12 ghost1372

@ghost1372 Actually the style is changing the Background to the PrimaryBrush. The thumb is always white. It can be interresting if they were a style that using the Foreground property to change the thumb color ! I try to make this style but i suck with the Animation 😅.

Yopler avatar Dec 09 '21 14:12 Yopler

Like @Yopler said, I can easily override the background property but the Thumb remains white. In the new style the Thumb is white when OFF but changes to for example BLUE when its ON. The current color animation should apply to the thumb instead of the background. For this a new style is required.

Symbai avatar Dec 10 '21 00:12 Symbai