hsluv / hsluv

Human-friendly HSL, website and math
https://www.hsluv.org/
MIT License
1.28k stars 55 forks source link

Website: consider copying color codes to clipboard automatically #80

Open Gnumaru opened 3 years ago

Gnumaru commented 3 years ago

It would be really nice if, while updating the color code text box in the bottom left, the value also got copied to the clipboard. Since very few paint applications provide an hsluv color picker I end up using the website a lot just for color picking.

But the workflow is a bit tedious: pick color on the website, click on the textbox, select all the text, copy, go back to my painting app, click on whatever color input I have, select all text, paste.

Having the website copy the colors to the clipboard automatically would make things a bit less cumbersome.

If the automatic behavior is undesired, then perhaps there could be a checkbox for enabling or disabling the behaviour.

boronine commented 3 years ago

I'm a little wary of implementing this as I believe it's a bit impolite for a web application to write to the user's clipboard.

The quickest way to copy the hex value currently is to double click the text + ctrl-c.

I'll leave this issue open in case anyone else has any thoughts on this.