Closed ghost closed 1 year ago
Do you mean for example something like:
red: %r, blue: %b and green: %g
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.
@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.
@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.
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:
%%
and as either integer %P
or floating point number %p.
%0.
or without leading zero %.
%H
/ %h
or double hexadecimal digits %X
/ %x
#5455%i
or [16,240] %I
, possibly 10-bit %0
and 12-bit integers #5422 or turned into flats with the respective precision%D
or without %d
degree sign ° or symbol (CSS: deg
) %r
(CSS: rad
), possibly with a factor of π incorporated %R
%t
(τ, CSS: turn
)%n
, possibly other palettes (e.g. spot colors, Pantone, Crayola, HKS, RAL)%R
/%G
/%B
, HSL, HSV, HSI, HWB %H
/%S
/%s
/%l
/%V
/%I
/%W
/%B
%A
or opacity %a
%r
/%g
/%b
: CIE, Adobe, ProPhoto/ROMM, DCI, UHD/Rec.2020/2100, ECI%L
/%
?/%
?, LCH %c
/%h
, Luv (1976) %u
/%v
, xyY, XYZ %x
/%y
/%z
/%Y
%1
through %9
are just shortcuts to the most frequently used combinations of generic %
+ number format + component.
Does anybody have an estimate if and when this might be implemented?
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
The ability to copy the HEX color (like #123456
) with or without the #
Hi everybody, I've started to work on this issue or better new feature. I would like to collect ideas about the parametrisation. What is proposed in the example video - is too few, I think. In a programming world when there is a “custom” possibility than it should allow every possible parameter. I have extracted from the other color formats the possible parameters, I mean which pop up in the predefined formats. You can find it in the following table. Also added the format, like hex or decimal or percent. <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
| byte (0..255) | int | hex | float | percent -- | -- | -- | -- | -- | -- Red | X | | X | | Green | X | | X | | Blue | X | | X | | Alpha | X | | X | | Cyan | | | | | X Magenta | | | | | X yEllow | | | | | X blackKey | | | | | X Hue | | double rounded to int | | | Saturation | | | | | X bRightness | | | | | X Intensity | | | | | X Lightness | | | | X | X valUe??? (part of the HSV format) | | | | | X Whiteness | | | | | X blackNess | | | | | X chrOmaticity a | | | | | X chromaTicity b | | | | | X X | | double rounded to int | | | Y | | double rounded to int | | | Z | | double rounded to int | | | Decimal value | | X | | |
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