Where to find icons

Post Reply
bill-lancaster
Posts: 32
Joined: Tuesday 26th September 2017 3:17pm

Where to find icons

Post by bill-lancaster » Monday 15th October 2018 8:43am

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

stevedee
Posts: 85
Joined: Monday 20th March 2017 6:06pm

Re: Where to find icons

Post by stevedee » Monday 15th October 2018 12:47pm

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: 32
Joined: Tuesday 26th September 2017 3:17pm

Re: Where to find icons

Post by bill-lancaster » Monday 15th October 2018 3:41pm

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