hluk / CopyQ

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

How to automatically change the text color of pinned items. #1475

Open luapfr opened 4 years ago

luapfr commented 4 years ago

I would like to know if there is a command that automatically lets the text color of the item read to be defined as important or fixed ?

hluk commented 4 years ago

You can try changing stylesheets, like in #1398. See: https://copyq.readthedocs.io/en/latest/theme.html

But changing background of the whole item is probably not possible using the CSS files.

You can change the Pin/Unpin commands to change also item color (here is how to add the command to CopyQ):

[Commands]
1\Command="
    copyq:
    var color = 'rgba(255,0,0,0.2)'
    setData(mimeColor, color)
    plugins.itempinned.pinData()"
1\Icon=\xf08d
1\InMenu=true
1\Input=!OUTPUT
1\Name=Pin
1\Output=application/x-copyq-item-pinned
1\Shortcut=ctrl+shift+p
2\Command="
    copyq:
    plugins.itempinned.unpinData()
    removeData(mimeColor)"
2\Icon=\xf08d
2\InMenu=true
2\Input=application/x-copyq-item-pinned
2\Name=Unpin
2\Shortcut=ctrl+shift+p
size=2
hluk commented 4 years ago

If you want to change the text color you can try adding following to the items.css:

ItemPinned #item_child,
ItemPinned #item_child * {
    color: red;
}

The problem is that it won't work with HTML items.

luapfr commented 4 years ago

Very grateful for the attention it worked. you could put these native solutions in the installation of CopyQ In a next version.

G-i-o commented 3 years ago

Indeed it's quite difficult to distinguish the pinned from unpinned items., especially in dark mode. If there was a way of making the small bar identifier of brighter color or otherwise more contrasting, that would help a lot.

P.S. Great, great work with this application. 🙏🏽

image

nicolnt commented 5 months ago

Indeed it's quite difficult to distinguish the pinned from unpinned items., especially in dark mode. If there was a way of making the small bar identifier of brighter color or otherwise more contrasting, that would help a lot.

P.S. Great, great work with this application. 🙏🏽

image

I am also interested to be able to customize that