jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
40.9k stars 7.61k forks source link

Color picker #1350

Closed mararad closed 3 years ago

mararad commented 3 years ago

A color picker that gets the color at click coordinate.

this is often accomplished with an eye dropper tool (allows picking colors from drawing).

AutomateAaron commented 3 years ago

As a work around for those who landed here form google, you can use your browsers built-in web tools:

mnKuV (gif source)

davidjgraph commented 3 years ago

@AaronNBrock are you sure that's built into any browser and not an extension?

AutomateAaron commented 3 years ago

It's part of the Chrome Dev Tools, I stole the gif this stack overflow answer. I also checked on Microsoft Edge & it has something similar.

I'm not sure it's part of any browser, but it works for me.

davidjgraph commented 3 years ago

Cool, that's enough for me. A picker colour picker is out of scope for the project and there is a workaround.

AutomateAaron commented 3 years ago

Having to use your browser's Dev Tools isn't a good solution IMHO. There still should be a native way to do this from within the application.

davidjgraph commented 3 years ago

This is out of scope. For a sketch/drawing tool, fine. This is a diagramming tool.

ShellCode33 commented 3 years ago

@davidjgraph IMO this is not totally out of scope so I'm upvoting this issue !

The other day I had to add a diagram to an existing document and I really wished my favorite diagramming tool had a built-in feature that would allow me to pick colors of existing diagrams so I could draw new ones with the same colors. Dia does it natively. Instead I had to use an intermediate tool and copy/paste the hex value, this is fine but not ideal !

davidjgraph commented 3 years ago

Cool, looking forward to your PR :).

alderg commented 3 years ago

We'll add Shift+Click on the color button in the next release to bring up a color picker.