Skip to content
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] Be able to leverage clipboard to transcode between formats #17333

Open
CombeeMike opened this issue Mar 29, 2022 · 4 comments
Open
Labels
Idea-Enhancement New feature or request on an existing product Product-Color Picker All things around the Color Picker utility

Comments

@CombeeMike
Copy link

CombeeMike commented Mar 29, 2022

Description of the new feature / enhancement

When opening the color picker without selecting a color first (i.e. from "Open editor" activation behavior), it would be very helpful if it would pick up a HEX color which is saved in the clipboard and use it as the "selected color".

I guess that it would be really hard to support all different color formats in different variations (e.g. rgb(x, y, z) vs rgb(x y z) vs rgb x y z etc.), so I'm specifically only asking for HEX support here since it's my main use case.

When it comes to HEX colors, I can only think of 4 variations which I imagine all to be rather easy to support:

  1. RRGGBB
  2. #RRGGBB
  3. RRGGBBAA (AA = alpha values)
  4. #RRGGBBAA

When recognizing 3 or 4, color picker could IMHO just discard the alpha value as it has no support for it in the UI (as far as I can see).

Scenario when this would be used?

I sometimes have to convert HEX colors to RGB and I'm using ColorCop for this ATM. Since the PT color picker is my main tool for color picking, it would be really convenient to not having to switch tools.

Supporting information

No response


If you'd like to see this feature implemented, add a 👍 reaction to this post.
Thank you for powertoys, your hard work allows me to work more efficiently and is greatly appreciated.

@CombeeMike CombeeMike added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Mar 29, 2022
@Jay-o-Way Jay-o-Way added the Product-Color Picker All things around the Color Picker utility label Mar 30, 2022
@franky920920
Copy link
Contributor

Seems like #8305 to me.

@CombeeMike
Copy link
Author

Seems like #8305 to me.

I don't see any resemblance at all. #8305 is asking for configurable color formats whilst I'm asking for the editor to pick up a selected color from clipboard when opening it. Obviously, the color from clipboard needs to be in a supported format but the 2 tickets are still targeting 2 completely different features IMHO.

Am I missing something here?

@crutkas
Copy link
Member

crutkas commented Jul 8, 2022

Is the ask here "I want a quick way to show conversions between formats?"

Issue with what you are proposing is with what format the alpha would come in as. ARGB and RGBA and there is BGRA ... https://en.wikipedia.org/wiki/RGBA_color_model. CSS is RGBA, XAML IS ARGB.

/needinfo

@ghost ghost added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jul 8, 2022
@CombeeMike
Copy link
Author

CombeeMike commented Jul 11, 2022

Is the ask here "I want a quick way to show conversions between formats?"

Yep, I guess it is. Actually, to be a bit more precise:
"I want a quick way to show conversions between formats for colors which are already in my clipboard."

Issue with what you are proposing is with what format the alpha would come in as. ARGB and RGBA and there is BGRA ... https://en.wikipedia.org/wiki/RGBA_color_model. CSS is RGBA, XAML IS ARGB.

I'd personally prefer RGBA, as I'm usually coming from "some CSS environment" but I see that hardcoding this could be troublesome. Maybe make this configurable?

I guess I could even live without support for alpha values at all here because they're not the important part for the conversion.

@ghost ghost added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jul 11, 2022
@crutkas crutkas changed the title [Color Picker] Pick HEX color from clipboard in "Open editor" activation behavior [Color Picker] Be able to leverage clipboard to transcode between formats Jul 11, 2022
@crutkas crutkas added Idea-Enhancement New feature or request on an existing product and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up labels Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Idea-Enhancement New feature or request on an existing product Product-Color Picker All things around the Color Picker utility
Projects
None yet
Development

No branches or pull requests

4 participants