-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[Color Picker] Configurable color formats #8305
Comments
Do you mean for example something like:
|
Yes |
@martinchrzan proposed to make these color formats like the PowerToys plug-ins. Contributors can create their own plug-ins that would include all the color conversions. These formats / plug-ins can then be enabled/disabled in Settings, similar to what we currently have. |
Sounds like a great idea. So we don't have any problems with the different ways of conversation. I think these formats (plugins) should be available in the copy to clipboard and the editor feature. |
I'm not familiar with PowerToys plugins... Does this mean that a separate module would have to be written every time someone wants a custom format? I see custom formats as a very powerful feature. For example, any time I work in a different programming language, I'd like to be able to copy a color to the clipboard in the syntax of that language (like the example in the original post). If a separate plugin has to be written for custom formats, it doesn't help end users who can't either write a plugin themselves or happen to find one that already meets their criteria. Aside from general extensibility, it's practically not much better than hard-coding additional formats into the base application (to the end user). Hopefully I am misunderstanding the idea. :) |
Well it is better in the case that we cannot hardcode milion different formats that people might want. We want to have 2 approaches - either simple snippet as in the original suggestion, so you can format string but you are limited with RGB/HSV numbers. If that is not enough and you need to do some transformation, we can provide plugins - we give you a skeleton project, you just fill in the logic, build and drop that dll in. We could add this scripting experience directly inside the editor, but that sounds like an overkill to build and validate some code inside our application (but not impossible) |
Totally agreed on the extensibility of plugins. I'm just thinking about a user who wants a quick and dirty format without much work. I'm guessing that snippets would cover the vast majority of these cases. If it's within the scope of the project, supporting both approaches would be awesome! I would vote to prioritize snippets. :) Thanks! |
I've suggested an approach with predefined codes for parameters and number-types before: Number formats
Color spaces and models
Presets
|
Does anybody have an estimate if and when this might be implemented? |
I think whe someone has the time to implement it. I think if you want to work on it, then you can do this. |
This is a very good Idea, would love to see in future releases |
Hi everybody,
We could allow every parameter in every format with 2 characters after the % character. First is the parameter identifier, second the format, for example %Rb could mean R as red and b as byte format. In the first column, where there are the possible parameters, I have selected a distinct uppercase ‘identifier’ for every parameter, for the formats the b (byte), i (int), h (hex), f (float) and p (percent) could do. What is your opinion? Thanks and best regards,
|
I proposed a different two-character variable system before. It’s important to note that almost every component may occur with and without a prefix or, more often, a suffix (i.e. usually a unit symbol, but also Hexadecimal digits may be upper or lowercase, come in nibbles or octets. Hues are almost always angles, often specified in unit-less degrees, but possibly in radians or something else. Many other components are either percentages or look like ones: CMYK should not be supported, because the algorithm used is harmful trash. CSS prefers OKLab now, which isn't supported here yet. You’ll quickly run out of single-letter component identifiers. |
The code for this issue has been released in 0.65. Please update PowerToys to the latest version: |
Configurable color formats: let the user create custom color formats so they have the complete freedom to create something custom. It would be nice to re-sort the list or to set a format as the default copy-to-clipboard. The format editor would live in Settings.
Pending work from #5379
The text was updated successfully, but these errors were encountered: