Page 1 of 1

Where to find icons

Posted: Monday 15th October 2018 8:43am
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

Re: Where to find icons

Posted: Monday 15th October 2018 12:47pm
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

Re: Where to find icons

Posted: Monday 15th October 2018 3:41pm
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