You are not logged in.
Hi, I'm using the default config of tint2 on Beryllium.
My tray is ok except for a single program (Nicotine+) which has a huge icon.
I really can't find out how to scale it.
I remember I had the same problem some time ago in Xfce, with another icon and i had fix it by adding a line to ~/.config/gtk3/gtk.css. I can't find out how to do it for Nicotine+.
Does anyone have any idea?
Thank you!
Offline
Quickly browsing the nicotine code, it appears it will use icon from theme or the bundled one
https://github.com/nicotine-plus/nicoti … ns/hicolor
I'am assuming this could be the reason for difference in size (it is using its own), but I could never get to make tray to look good. My workaround was to write scripts for tint2 executors and disable tray (quite some work).
Last edited by brontosaurusrex (2022-12-12 11:46:52)
Offline
I could never get to make tray to look good
Why? Wouldn't be possible to resize the icon, like in inkscape or so?
There has to be some way to control the size...
Offline
I linked the fodler with icons (I'am assuming you didn't install this via apt?), so you can try that. If the icon theme in use is papirus (or one which has the nicotine_plus icon, you can try that). Screenshot of the affected area would probably help.
Last edited by brontosaurusrex (2022-12-12 13:56:15)
Offline
Why?
Lack of knowhow on my part probably.
Last edited by brontosaurusrex (2022-12-12 14:03:25)
Offline
Here is the screenshot.
I downloaded the .deb from the official site and installed it directly. I thought it would be better to not add the repo.
Offline
Icons in question should be in
/usr/share/icons/hicolor/scalable/status
which was determined with
dpkg -c nicotine_3.2.7-1_all.deb | grep status
---
If all fails, it appears there is -d switch to run nicotine without tray icon (see --help).
Last edited by brontosaurusrex (2022-12-12 14:57:23)
Offline
Thank you, I found them and there are indeed very big.
However being the icons in /usr/ Inkscape can't save them. I should open Inkscape with sudo but I don't know, it feels very wrong.
I'll keep searching, I'm not an expert but to my understanding it has to be somewhere an instruction "telling" Nicotine+ to use that icons and how to use them, and I guess there will be a way to scale them...SVGs are scalable so their actual size doesn't matter. There will be a setting somewhere.
Last edited by yak (2022-12-12 15:20:10)
Offline
What matters probably is the padding (which is the part of the icon itself).
Just copy them to some folder in your user dir, then duplicate (to have originals backuped), open in inkscape, resize, save, when all done, sudo cp them back over originals, see what happens.
Last edited by brontosaurusrex (2022-12-12 15:58:56)
Offline
What matters probably is the padding
I tried to set the vertical padding in tint2 from 1 to 5 and it is it indeed! With padding set to 5 the Nicotine+ icon is normal (strange that 1 to 4 changes nothing). However, obviously now all the other icons are too small.
A way to set individual icons' padding would be great but unfortunately it doesn't appear to exist.
Just copy them to some folder in your user dir, then duplicate (to have originals backuped), open in inkscape, resize, save, when all done, sudo cp them back over originals, see what happens.
Yeah, I'll try it, seems the only option sadly. Thank you.
Offline
Tint2 author was active in this very forums in the past, perhaps a nicely explained feature request could solve this (some sort of regex* based padding for tray?).
Offline
You can reduce the original with mogrify (from imagemagick) to the appropriate size for the bar.
Offline
Tint2 author was active in this very forums in the past, perhaps a nicely explained feature request could solve this
Was he? Wow, didn't know that! Yeah, I'll try to request the feature then.
(some sort of regex* based padding for tray?)
I'm sorry, what's that?
You can reduce the original with mogrify (from imagemagick) to the appropriate size for the bar.
Thank you, I didn't know mogrify, very useful! Unfortunately it doesn't seems to handle the svgs though...it can convert them to png, but I wasn't able to just resize them.
Offline