Page 1 of 1

Cannot Use Custom Menu Icon

Posted: Thu May 28, 2020 8:41 pm
by Martin64
Since upgrading to Raspberry Pi OS 2020-05-27 I cannot use custom menu icons. Defaulting back to "start-here" shows icon, any other custom icon does not appear. Tried on upgrade and freshly installed SD.

Re: Cannot Use Custom Menu Icon

Posted: Fri May 29, 2020 7:37 am
by amontag
I am not sure if connected but after upgrading my RPi2 to latest updates I am missing the first icon on the top menu, where a small square is there. I have exactly same configuration on a RPi4 where icon is showing up

Re: Cannot Use Custom Menu Icon

Posted: Fri May 29, 2020 9:21 am
by spl23
I've just tested changing the menu icon, and it works for me - right-click the menu button, choose "Menu options" and put the name of an icon in the current theme into the box.

It has to load an icon (by name) from the current theme; it won't load an arbitrary image file.

Re: Cannot Use Custom Menu Icon

Posted: Fri May 29, 2020 11:34 am
by Martin64
amontag: Yes that's the a similar problem I'm having.

spl23: I've never used themes (didn't know there were any until now), I used to have my own menu icon but since last update I only have a grey or empty square. I used to be able to right-click the menu button and then menu settings I can browse to my icons. This worked with any icon, now it doesn't work. The only icon I can get to work is typing in the default 'start-here' in the browse box.

Re: Cannot Use Custom Menu Icon

Posted: Fri May 29, 2020 12:33 pm
by spl23
One of the changes made in this release was to tidy up all the lxpanel icon handling code, which was (frankly) an awful mess; it now uses the same icon loading and scaling routines throughout, but it does mean that you can only use actual icons, not arbitrary image files, which it sounds as if it is what you were doing.

To add an image to the icon theme, copy the file (preferably a png) to the appropriate subdirectory of /usr/share/icons/hicolor/nxn/apps, where "nxn" is the size of the icon in pixels; so for a 16x16 image, copy it to /usr/share/icons/hicolor/16x16/apps.

You then need to update the icon cache - open a terminal, navigate to /usr/share/icons/hicolor, and run "sudo gtk-update-icon-cache".

Now just type the name of the icon - which will be the name of the image file without the extension - into the "Icon" box in the dialog that appears when you right-click the menu icon and choose "Menu settings" from the menu that appears. Your chosen icon should then appear on the menu.

Re: Cannot Use Custom Menu Icon

Posted: Fri May 29, 2020 12:48 pm
by Martin64
Thank you spl23 for your explanation. I have a large menu bar 48x48 and was using 128x128 .png images for quality placed in the 'Pictures' folder for the menu icon. I'll have a go reducing the images to 16x16 and doing as you have indicated when I have more time. Thanks...

Re: Cannot Use Custom Menu Icon

Posted: Fri May 29, 2020 12:58 pm
by spl23
Sorry - I should have been clearer. If you have a 48x48 menu bar, then you can either scale your images to 48x48 and put them in the /usr/share/icons/hicolor/48x48/apps directory, or you can just put the 128x128 versions into the /usr/share/icons/hicolor/128x128/apps directory; they should then be automatically rescaled correctly.

If you downscale to 16x16, they'll look blocky and poor quality on a 48x48 bar.

Re: Cannot Use Custom Menu Icon

Posted: Fri May 29, 2020 10:43 pm
by Martin64
I think it was me who wasn't being clear. Anyway I meant the 'start' menu (see picture below) not the application launch bar. I have tried changing the 'start menu' icon using the browse dialog and can't change the icon.

Image

Re: Cannot Use Custom Menu Icon

Posted: Sat May 30, 2020 1:00 am
by kerry_s
Martin64 wrote:
Fri May 29, 2020 10:43 pm
I think it was me who wasn't being clear. Anyway I meant the 'start' menu (see picture below) not the application launch bar. I have tried changing the 'start menu' icon using the browse dialog and can't change the icon.

Image
i think your just not understanding, it only uses icons from the theme(default PiXflat) so you just put the name & it will use the proper size.
example: i put "rpi" the theme includes "rpi.png".

Re: Cannot Use Custom Menu Icon

Posted: Tue Jun 02, 2020 2:08 pm
by amontag
in that icon I changed from /usr/share/raspberrypi-artwork/launch.png to start-here and everything works as expected

Re: Cannot Use Custom Menu Icon

Posted: Wed Jun 03, 2020 7:45 pm
by MarkDH102
I too am really struggling with this missing icon.
Fresh 64 bit install. No additions. Pi4 4GB. Wireless. update && full-upgrade. Running headless through NoMachine.
"Start" icon is blank. Clicking menu settings icon points to /usr/share/lxde/images/lxde-icon.png
Only way I can get anything in there is by typing "start-here".

I have no idea what "theme" I'm running although I THINK it is nuovext.2.2 judging by the style of the trash can.

And I understand what you're saying about clearing up a "messy" system, but having to place the icon in the "correct" folder and then run a tool to update the cache is not intuitive. Who is going to work that out? I can't even find a suitable start icon...

Re: Cannot Use Custom Menu Icon

Posted: Sat Jun 27, 2020 10:37 pm
by kranok
I've managed to change the Menu icon doing the following steps:

1. Right click Menu Icon in Task Bar, and click on "Menu Settings".
2. Change Icon name from "start-here" to "rpi".
3. Store new icon image in Pictures folder or any other folder.
4. Replace the rpi.png in the following paths:

$ sudo cp ~/Pictures/newIcon.png /usr/share/icons/hicolor/32x32/apps/rpi.png
$ sudo cp ~/Pictures/newIcon.png /usr/share/icons/PiXflat/16x16/apps/rpi.png
$ sudo cp ~/Pictures/newIcon.png /usr/share/icons/PiXflat/24x24/apps/rpi.png
$ sudo cp ~/Pictures/newIcon.png /usr/share/icons/PiXflat/32x32/apps/rpi.png
$ sudo cp ~/Pictures/newIcon.png /usr/share/icons/PiXflat/48x48/apps/rpi.png

Hope it helps. :D

Re: Cannot Use Custom Menu Icon

Posted: Sat Sep 05, 2020 12:24 am
by RaspberryRicky
Hi yall,

I tried the above method of copying those files to those directories but it didnt work out for me.
Then I searched all the icon directories and I found out that if I copy to

/usr/share/icons/PiX/32x32/places/rpi-logo.png

that after a reboot my icon was replaced , so if you do

$ sudo cp ~/Pictures/newIcon.png /usr/share/icons/PiX/32x32/places/rpi-logo.png

You dont have to change any menu settings just leave 'start-here' because it is linked to 'rpi-logo.png'
and then after reboot it should work.BTW I use a RPi4 4GB for this with Raspbian GNU/Linux 10 (buster).
So in my case it worx with the 32x32 version replaced and if you have any problems with this try other sizes
to the correct directories as well.
Also I simply used the HiColor png image file for better results,worx fine.