pilotmoon / PopClip-Extensions

Source code for extensions in the official PopClip Extensions directory.
https://www.popclip.app/extensions/
MIT License
1.92k stars 442 forks source link

Extension Request: convert hex color to name #1127

Closed mesqueeb closed 4 years ago

mesqueeb commented 4 years ago

There's a tool I always use that converts hex/rgba colors to a unique color name: http://chir.ag/projects/name-that-color/#6195ED

I'd love to have an extension in popclip that can take a hex or rgba string and replace it with the color name! 🎨

oxxie commented 4 years ago

Hi @mesqueeb , see #1138 for a suggestion on my end! :-)

pilotmoon commented 4 years ago

Done thanks to @oxxie. Quick download link: https://github.com/pilotmoon/PopClip-Extensions/blob/master/extensions/NameColor.popclipextz?raw=true

mesqueeb commented 4 years ago

@oxxie @invariant it doesn't seem to come with an icon. Is it possible to have it use an icon like other extensions?

image

The functionality is great though!

oxxie commented 4 years ago

@mesqueeb This is certainly possible! Do you have any suggestions of what this icon should look like? Some example pictures would be nice.

mesqueeb commented 4 years ago

Maybe some kind of color picker? Like this one:

<svg xmlns="http://www.w3.org/2000/svg" style="color:rgb(171,146,240);" width="20" height="20" viewBox="0 0 20 20"><g fill="none" fill-rule="evenodd"><path fill="currentColor" d="M7.536 15.236c-1.56.617-4.257 2.371-4.728 1.9-.306-.305.323-1.546.972-2.805h4.66l-.905.905z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16.51 6.262l-8.974 8.974c-1.56.617-4.257 2.371-4.728 1.9-.472-.471 1.283-3.169 1.9-4.728l8.974-8.975m0 0h0a2 2 0 0 1 2.828 0h0a2 2 0 0 1 0 2.829h0m-6.366-2.124l5.657 5.657"/></g></svg>
oxxie commented 4 years ago

Nice suggestion! See #1141 :-)