You are not logged in.

#1 2022-12-12 09:26:08

yak
Member
Registered: 2022-12-01
Posts: 35

How to change tray icon's size of a specific program?

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

#2 2022-12-12 11:46:26

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: How to change tray icon's size of a specific program?

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

#3 2022-12-12 13:35:14

yak
Member
Registered: 2022-12-01
Posts: 35

Re: How to change tray icon's size of a specific program?

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

#4 2022-12-12 13:52:58

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: How to change tray icon's size of a specific program?

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

#5 2022-12-12 14:02:51

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: How to change tray icon's size of a specific program?

yak wrote:

Why?

Lack of knowhow on my part probably.

Last edited by brontosaurusrex (2022-12-12 14:03:25)

Offline

#6 2022-12-12 14:15:27

yak
Member
Registered: 2022-12-01
Posts: 35

Re: How to change tray icon's size of a specific program?

screenshot

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

#7 2022-12-12 14:50:29

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: How to change tray icon's size of a specific program?

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

#8 2022-12-12 15:19:13

yak
Member
Registered: 2022-12-01
Posts: 35

Re: How to change tray icon's size of a specific program?

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

#9 2022-12-12 15:40:16

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: How to change tray icon's size of a specific program?

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

#10 2022-12-12 17:02:50

yak
Member
Registered: 2022-12-01
Posts: 35

Re: How to change tray icon's size of a specific program?

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

#11 2022-12-12 17:22:51

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: How to change tray icon's size of a specific program?

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

#12 2022-12-12 19:49:42

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,698

Re: How to change tray icon's size of a specific program?

You can reduce the original with mogrify (from imagemagick) to the appropriate size for the bar.

Offline

#13 2022-12-13 14:16:35

yak
Member
Registered: 2022-12-01
Posts: 35

Re: How to change tray icon's size of a specific program?

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

Board footer

Powered by FluxBB