hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.62k stars 440 forks source link

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

Closed orschiro closed 5 months ago

orschiro commented 5 months ago

Hi all,

In reference to https://github.com/hluk/CopyQ/issues/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 commented 5 months ago

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
hluk commented 5 months ago

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

orschiro commented 5 months ago

@hluk cannot await to test it, thank you!

hluk commented 5 months ago

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

orschiro commented 5 months ago

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

image
hluk commented 5 months ago

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 commented 5 months ago

I forgot to add the command.

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

image
hluk commented 5 months ago

Thanks for the testing!

orschiro commented 5 months ago

You're welcome. :)

On Fri, 3 May 2024 at 11:59, Lukas Holecek @.***> wrote:

Thanks for the testing!

— Reply to this email directly, view it on GitHub https://github.com/hluk/CopyQ/issues/2700#issuecomment-2092685437, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABJXQ4OHJB3TE35XEBERS3ZANNYBAVCNFSM6AAAAABGYLVEU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJSGY4DKNBTG4 . You are receiving this because you were mentioned.Message ID: @.***>