Oversized icons in Budgie Application indicator

Asked by Durian Wool

Hi,
In Budgie desktop, the icon for timekpr is oversized occupying 20% of the vertical space, when it is in the taskbar. I see they are pointing to some .svg files for the icon. How to specify the size? Is there any config file to do so?

It is unfortunate I cannot post a screenshot, but on a 1080 scrren, I'd imagine the size of the 'locl' icon for example is like 200x200.

THanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Timekpr-nExT Edit question
Assignee:
Eduards Bezverhijs Edit question
Solved by:
Durian Wool
Solved:
Last query:
Last reply:
Revision history for this message
Eduards Bezverhijs (mjasnik) said :
#1

That's interesting.
Of course, timekpr assigns indicator icon when it starts and yes, they are all svgs. There is no need (and no way?) to actually specify the size of it. It works in most of the DEs w/o a problem.
I'll try getting budgie as check what's the issue with the icon and how to solve it.

Revision history for this message
Eduards Bezverhijs (mjasnik) said :
#2

Although, screenshot would be nice, just upload it to any free image hosting and paste a link in a comment.

Revision history for this message
Durian Wool (durianwool) said :
#3

Hi, Here's the screenshot and thanks for looking into it:

https://drive.google.com/open?id=1xtecgTACnn7oo9HtxzPZx0GeO_xwKWNc

As you can see - it is oversized, and because of it, the budgie panel overlaps the window, and I've lost ability to move the window. My current way around it is:
1. DESKTOP SETTINGS->TOP PANEL
2. Remove AppIndicator applet.

Revision history for this message
Eduards Bezverhijs (mjasnik) said :
#4

Well, I saw that oversized icon, it's huuuge...
What can I say, svg handling is broken in Budgie... So far only Budgie shows those enormous icons...
SVG has no notion of size, it fits the area it's put in, I really do not know how Budgie calculates icon sizes in system notification area, but it seems a little off...

Only thing I can do is "downgrade" to png icons in case of Budgie which is not exactly a nice fix.

Revision history for this message
Durian Wool (durianwool) said :
#5

Ok it will do for now. I might need to report this as a bug to the Budgie group.
So how can I configure/repoint timekpr-next to use .png files as workaround?

Thanks.

Revision history for this message
Eduards Bezverhijs (mjasnik) said :
#6

Well, the thing is - there are no png files for Timekpr-nExT, it was supposed to be svg only.
You can try to convert the files to png and name them as svg :) It may help...

E.g. try to save original files by appending .ORIG at the end then try to convert each of the SVG to PNG in directory /usr/share/timekpr/icons , I believe the size is 24x24 px.

At some time I may do that by myself and add some option for bugged DEs to fallback to pngs, but it won't be as fast as You just convert the files.

Please report back whether that worked for You.

Revision history for this message
fossfreedom (fossfreedom) said :
#7

Each of the svg icons are 300x300 in size .... width and height are specified in the svg file.

Appindicator icons are 22x22 according to the appindicator spec

Revision history for this message
Eduards Bezverhijs (mjasnik) said :
#8

Well, I saw that svg mentions size in the file... Maybe that's default size or smth, I'm not an expert.
Anyhow, then every DE should show that 300 px icons, but none except Budgie does it.

Please change the size in SVG and try, please report back whether that works for You. If I'll have some free time, I'll try that as well.

Revision history for this message
Eduards Bezverhijs (mjasnik) said :
#9

By rescaling it in Inkscape to 22px (wider side) I was able to show icon normally Budgie as well, at least in self-contained test case. Great :)
Now I need to resize every status indicator icon, make a timekpr package and verify that in every other (at least major) DE. Not that great, but most likely we have a solution :)

fossfreedom, maybe You could look into that max status icon sizes in Budgie... Someone else could make icon default size even bigger than mine ;)

Revision history for this message
Durian Wool (durianwool) said :
#10

Thanks will test when I get back from work thanks a lot. I've also lodged it as a bug in the Budgie group:

https://bugs.launchpad.net/budgie-indicator-applet/+bug/1641457

Revision history for this message
fossfreedom (fossfreedom) said :
#11

Eduards - I have had a quick look at budgie as well as mate-desktop.

Both have issues with sizing of icons with timekpr-next.

Not really sure what I can do here - I'm using Gtk.Image.set_pixel_size(22) to set the size - mate is doing an identical set_pixel_size - it seems like this only works when using named_icons.

Revision history for this message
Durian Wool (durianwool) said :
#12

Hi, Just tested it, and it works! And this is great - it means someone could also design the icons to suit the look and feel.
Thanks again for the quick workaround!

Revision history for this message
Eduards Bezverhijs (mjasnik) said :
#13

I have fixed the issue and Unity 16.04 and Ubuntu 18.04.3 default Gnome seems to work fine.
I'll test that in like 15 downloaded distros and then I'll release a beta and shortly after - a stable version.

Revision history for this message
Eduards Bezverhijs (mjasnik) said :
#14

Packages are building (beta currently), issue should be fixed/workarounded in Budgie.