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

Ability to show hex code color (in the tray menu)? #2700

Closed
orschiro opened this issue Apr 25, 2024 · 9 comments · Fixed by #2704
Closed

Ability to show hex code color (in the tray menu)? #2700

orschiro opened this issue Apr 25, 2024 · 9 comments · Fixed by #2704

Comments

@orschiro
Copy link
Contributor

Hi all,

In reference to #1583.

The issue provides several commands to display the color of a hex code in the main menu.

However, I would like to display the color in the tray menu as well.

Can anyone help me with this?

Thank you!

image image image
@orschiro
Copy link
Contributor Author

By the way, I just noticed that after a while colors are not showing in the main menu anymore.

I cannot yet say when/why this happens.

image

@orschiro orschiro changed the title Ability to show hex code color in the tray menu? Ability to show hex code color (in the tray menu)? Apr 29, 2024
hluk added a commit that referenced this issue May 2, 2024
hluk added a commit that referenced this issue May 2, 2024
hluk added a commit that referenced this issue May 3, 2024
@hluk hluk closed this as completed in #2704 May 3, 2024
@hluk
Copy link
Owner

hluk commented May 3, 2024

Fixed in #2704. Showing color icon in tray menu will be available in the next release.

@orschiro
Copy link
Contributor Author

orschiro commented May 3, 2024

@hluk cannot await to test it, thank you!

@hluk
Copy link
Owner

hluk commented May 3, 2024

@orschiro Feel free to test it with the latest dev builds: https://ci.appveyor.com/project/hluk/copyq/builds/49741262/artifacts

@orschiro
Copy link
Contributor Author

orschiro commented May 3, 2024

@hluk just tested but it doesn't seem to work.

image

@hluk
Copy link
Owner

hluk commented May 3, 2024

Can you share the commands you use to show the color?

For the tray menu icon, you can use a simple Display command (these work on existing items too since they do not need to modify underlying item data):

[Command]
Command="
    copyq:
    setData(mimeColor, input());"
Display=true
Icon=
Input=text/plain
Match=^#[0-9a-zA-Z]{3}
Name=Show Colors

@orschiro
Copy link
Contributor Author

orschiro commented May 3, 2024

I forgot to add the command.

Now they nicely show up, thank you! :-)

image

@hluk
Copy link
Owner

hluk commented May 3, 2024

Thanks for the testing!

@orschiro
Copy link
Contributor Author

orschiro commented May 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants