Where to find icons

Post your Gambas programming questions here.
Post Reply
bill-lancaster
Posts: 190
Joined: Tuesday 26th September 2017 3:17pm
Location: NW England

Where to find icons

Post by bill-lancaster »

I'm struggling with this,
I have a project with a nice icon that I want to load with code in a new project
The original project has the icon loaded from the 'Picture' properties for the button. This shows as something like 'icon:/48/pause.png'

To load from code in the new project I need the full path, how can I find it?

Thanks
User avatar
stevedee
Posts: 518
Joined: Monday 20th March 2017 6:06pm

Re: Where to find icons

Post by stevedee »

My work-around is not to use stock icons.

- Close your project
- Use file manager to look for suitable icons in: /usr/share/icons
...for your example, maybe select: /usr/share/icons/gnome/32x32/actions/gtk-media-pause.png
- Copy selected icon to your Gambas project folder
- Open your project in Gambas, your selected icon should appear in Project file sidepanel
- Now use Icon from Project, not Stock

I hope this helps
bill-lancaster
Posts: 190
Joined: Tuesday 26th September 2017 3:17pm
Location: NW England

Re: Where to find icons

Post by bill-lancaster »

Thank you stevedee, I was just going to post a reply to my own question which would have been exactly the same as your posting, right down to the file name and path!
Thanks again
Post Reply