-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restyle of ToggleSwitch #1549
Restyle of ToggleSwitch #1549
Conversation
...rols/Settings/SettingEntries/SettingInteractionControls/Toggle/SettingToggleControl.axaml.cs
Outdated
Show resolved
Hide resolved
...ontrols/Settings/SettingEntries/SettingInteractionControls/Toggle/SettingToggleControl.axaml
Outdated
Show resolved
Hide resolved
...hemes/NexusMods.Themes.NexusFluentDark/Styles/Controls/ToggleSwitch/ToggleSwitchStyles.axaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of items above, check if those ClipToBounds are still needed, or if the other place fixed the issue and they are redundant now.
Removed one of the ClipToBounds now it was set in the style |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above for moving ClipToBounds to xaml.
Btw I tested this and it's glorious.
One thing that I can think we might want in the future would be adding transition speeds, to simulate an animation when switching the states, but we can see about that later.
Restyled ToggleSwitch to match Figma. Added the smaller variation by creating a
Compact
class. Updated the two places that the control is used to use this new class. Needed to set ClipToBounds=False in a couple of places to accommodate the new hover state.Fixes #1550