Skip to content
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

Merged
merged 9 commits into from
Jun 6, 2024
Merged

Conversation

insomnious
Copy link
Collaborator

@insomnious insomnious commented Jun 5, 2024

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

@insomnious insomnious requested a review from a team June 5, 2024 14:58
@Al12rs Al12rs self-requested a review June 5, 2024 16:43
Copy link
Contributor

@Al12rs Al12rs left a 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.

@insomnious
Copy link
Collaborator Author

Removed one of the ClipToBounds now it was set in the style

Copy link
Contributor

@Al12rs Al12rs left a 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.

@Al12rs Al12rs merged commit 9a1ad0f into Nexus-Mods:main Jun 6, 2024
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants