Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Conversation

@zZBrigadierZz
Copy link
Contributor

Added dynamic ripple color change based on background color lightness. Moved IsOn and IsCheck from StartInteraction to EndInteraction, so that client can cancel the interaction by moving the pointer/thumb outside of component boundaries.

/// <returns>Can return Colors.Black or Colors.White</returns>
public static Color ComplementaryColor(this Color color)
{
color.ToHsl(out _, out _, out var lightness);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can return a default color (or null value) if the color parameter is null.

…is null in ComplementaryColor method we return Colors.Black as default color.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants