vv9k / epick

Color picker for creating harmonic color palettes that works on Linux, Windows, macOS and web.
GNU General Public License v3.0
102 stars 2 forks source link

Custom color display formats #19

Closed crumblingstatue closed 2 years ago

crumblingstatue commented 2 years ago

Let the user define custom color display formats. For example, when working on an egui project, the user could simply define an egui color format egui::Color32::from_rgb({r}, {g}, {b}), which then can be easily copied to the clipboard with a click.

The design of the description language is yet to be decided, but I think a very simple basic language should be sufficient, maybe similar to the Rust format syntax.

Good to have features:

vv9k commented 2 years ago

Definitely a nice feature, would probably require some sort of persistent configuration file.

vv9k commented 2 years ago

I've made an initial implementation, you can check out the master branch.

I think one thing that would be nice would be storing multiple custom formats and being able to use them as needed, but perhaps that could be added later on.

The syntax is described in the README.

crumblingstatue commented 2 years ago

Thank you, it's working really well! Before closing this issue though, I would really like it if custom color formats were saveable, like you mentioned!

vv9k commented 2 years ago

I've added persistent custom formats, should be up on master branch. After playing around with it for a bit, everything seemed to be working fine. It is a pretty basic implementation but should suffice for now. Let me know if you encounter any bugs ;)

crumblingstatue commented 2 years ago

Thank you very much! I've been looking for a good color picker, and I think this will be my main choice from now on!