PowerToys
PowerToys copied to clipboard
Color Picker - auto detect format specified by user (% or float)
Description of the new feature / enhancement
Enhance Color Picker to detect and use the unit format specified by the user for percentage vs float values.
This can be used for e.g. hsl(h s% l% / a), where a would output 0 to 1 float values, and a% would output 0% to 100% values.
RGB, OkLCh, and others contain values that can be either float or percentage.
Scenario when this would be used?
- In
Color Picker > Color Formatsthe user hasrgb(%Re %Gr %Bl)which results in displayed color e.g.rgb(224 224 224). - The user then edits format to
rgb(%Re% %Gr% %Bl%). This will now result in displayed color e.g. rgb(88% 88% 88%).
Supporting information
Discussion begins in https://github.com/microsoft/PowerToys/issues/23724