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

Add minimumWheelLightness #135

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

thirstycoda
Copy link

Firstly thanks for this library. It's great!

I'm using it as a text color picker. The default text color is black. The problem I had was when the user opens the text color picker for the first time, all the circles on the wheel were black as the wheel was set to the current text color. Users had to drag the lightness slider before revealing the colors they can choose from which wasn't intuitive.

This PR tackles this problem by adding an optional attribute to the ColorPickerView which will show the wheel colors at full lightness, except for the circle currently selected, when the lightness value drops below it. The idea is that when the lightness value is as low as 0.01 for example, the colors are indistinguishable so offering lots of buttons that effectively do the same thing is not that useful.

Hopefully this will help others too (#109)

I also made changes to get this building with Jitpack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant