numix-icon-theme icon indicating copy to clipboard operation
numix-icon-theme copied to clipboard

A little bit darker mimetype icons

Open Corsseir opened this issue 10 years ago • 21 comments

Hey, could you make couple of Numix mimetype icons a little bit darker? It is completely invisible on white background when cursor is over it. enhancement

Corsseir avatar Nov 13 '15 21:11 Corsseir

Is that only when it's hovered or all the time (for Kconfig)?

Foggalong avatar Nov 13 '15 21:11 Foggalong

Only when hovered.

Corsseir avatar Nov 13 '15 21:11 Corsseir

Which GTK theme is this with?

Foggalong avatar Nov 13 '15 21:11 Foggalong

This is Arc.

Corsseir avatar Nov 13 '15 21:11 Corsseir

Thanks :+1:

Foggalong avatar Nov 13 '15 21:11 Foggalong

Also happens with Numix GTK theme btw

andia89 avatar Nov 13 '15 21:11 andia89

It's really hard fix this. The effect doesn't vanish above L205 which looks to grey for a sheet of paper. A yellowish or blueish tint doesn't seem to help that much either.

palob avatar Nov 14 '15 01:11 palob

Is there a way to disable hover effect or somehow change a color of hovering?

Corsseir avatar Nov 14 '15 19:11 Corsseir

Afaik you need to edit the GTK theme.

palob avatar Nov 14 '15 19:11 palob

ok, and what i have to change? It would be enough for me but i dont know what should be changed in gtk theme.

Corsseir avatar Nov 14 '15 19:11 Corsseir

I haven't delved into GTK theming myself so far. You'll find the themes in /usr/share/themes (or the respective local paths). There you need to edit one of the CSS files.

Alas, the documentation for GTK theming is still somewhat rudimentary and scattered all over the shop.

It's best to ask in for instance the Arc repo or on a GNOME IRC channel.

palob avatar Nov 14 '15 19:11 palob

It is not changeable :(

Corsseir avatar Nov 14 '15 23:11 Corsseir

Is there a way to change a background of the icons itself with one simple command? I install your icons on Fedora with my own script that copies github repo and then move everything to '/usr/share/icons'. If there is some command that can change background of icon without involving Inkscape, it would be great - I will change it on my own and everyone would be happy :) To gray color than sheet of paper doesn't matter for me, I prefer aesthetics over it.

EDIT

Ok, I found it, I will public some script this week.

Corsseir avatar Nov 15 '15 11:11 Corsseir

I can't recall an exact command but for instance there are ways to do it with the librsvg CLI or the Inkscape CLI (Inkscape verbs). Alternatively you can just use a Shell/Python/Perl/Lua/Ruby... script to go through all files in .../Numix/<size>/mimetypes/ (where <size>=[16,22,24,32,48,64]) and replace every instance of #dcdcdc (hex value of the current L220 colour) by #c0c0c0 (L192).

palob avatar Nov 15 '15 13:11 palob

Thanks, I was playing a little bit with 'sed' and I learnt the way how hover effect works with icons. I think that it is fixable and I will try solve this problem.

Hover effect hates this: rgb(86.27451%,86.27451%,86.27451%);fill-opacity:1; It is better to change it to something like this: rgb(0%,0%,0%);fill-opacity:0.15;

btw it fixes bug with backgound color of icon when hovering.

Corsseir avatar Nov 15 '15 15:11 Corsseir

So you found where to edit it in the GTK theme?

palob avatar Nov 15 '15 15:11 palob

Nope, in svg file.

Check it (1 bug, 2 fix): screenshot from 2015-11-15 16-16-38 screenshot from 2015-11-15 16-14-51

Corsseir avatar Nov 15 '15 15:11 Corsseir

Ah OK, so it isn't saved as hex, guess that's due to the icons have had an SVG cleaning script applied in the past.

What you did is setting the colour to black and 85% transparency. Is that what you want?

palob avatar Nov 15 '15 15:11 palob

That's actually a pretty cool way to fix this isn't it? But maybe make the difference a bit more obvious sth like 30% transparancy?

andia89 avatar Nov 15 '15 16:11 andia89

The icons won't look the same on non-white backgrounds (e.g. dark GTK theme variant) though.

palob avatar Nov 15 '15 16:11 palob

Yes that's indeed a reason not to do that...

andia89 avatar Nov 15 '15 16:11 andia89