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

Alpha Color #19

Open
yussefbens opened this issue May 2, 2016 · 7 comments
Open

Alpha Color #19

yussefbens opened this issue May 2, 2016 · 7 comments

Comments

@yussefbens
Copy link

Hi, I'm using your lib and I love it so much, but when I want to add 100% alpha color it just doesn't appear it's a full transparent color.
Thank you and sorry for creating the issue "Hi,", it was a mistake.

@nwalters512
Copy link
Member

Thanks for the report. Can you give an example of the code or color hex value that's producing this problem?

@yussefbens
Copy link
Author

yussefbens commented May 2, 2016

#00F44336

@yussefbens
Copy link
Author

What I want to say is not for a specific color but for all colors that contain #00XXXXXX, I want to be something like in attachment
screen shot 2016-05-02 at 3 08 16 pm

@nwalters512
Copy link
Member

Spectrum wasn't really designed to work with semi-transpatrent colors, so in this case it's working as intended. You're more than welcome to submit a pull request implementing your desired feature!

@dkneller
Copy link

Spectrum does work with semi-transparent colors but they look 'washed out' as the white background is blended into the color. One issue I've found is that the code that decides to draw a white or black border around the color swatch only looks at RGB, so 00000000 and 00FFFFFF have different colored border but each swatch looks 'white' as the background color blends through.

@nwalters512
Copy link
Member

My guess is that having a checked background like was suggested would obviate the need for borders on transparent items over a certain threshold. If/when we get that done, we can see how best to calculate borders for semi-trasparent colors.

@dkneller
Copy link

True enough but, depending on usage, we may not want a checked background so I think the issues are separable. In my case, I have a "highlight" color dialog for highlighting text. Showing the highlight just the way it's going to look works well for us:

screenshot_2016-12-17-10-05-54 2

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

No branches or pull requests

3 participants