[Gambas-user] Fwd: Looking for icons
Fabien Bodard
gambas.fr at ...626...
Fri Feb 21 09:56:58 CET 2014
---------- Forwarded message ----------
From: Fabien Bodard <gambas.fr at ...626...>
Date: 2014-02-20 21:05 GMT+01:00
Subject: Re: [Gambas-user] Looking for icons
To: "eilert-sprachen at ...221..." <eilert-sprachen at ...221...>
Stock is a library that take the picture on the system on 3 way
First stock icon name is known in the stock list so there is a file
that map the icon on defined known one :
access apps/preferences-desktop-accessibility
add actions/list-add
apply actions/dialog-apply
archive mimes/package-x-generic
attach status/mail-attachment
audio mimes/audio-x-generic
battery devices/battery
when you type "icon:/16/access" it search for
"/usr/share/icons/theme/16x16/apps/preferences-desktop-accessibility.png"
in fact it try to use scalable first and then the true required size
and if not...the a size and stretch it
if this icon is not found on the system on all inhrited themes for
example oxygen>hicolor then it use internal stored icon.
There is also a way to use an icon not registered in the icon list for example :
picture["icon:/64/devices/scanner"]
in this way you must to specify the icon category name and the icon
name without the extention.
the real path is "/usr/share/icons/oxygen/64x64/devices/scanner.png"
I hope this help you to understand how stock work.
Regards,
--
Fabien Bodard
--
Fabien Bodard
--
Fabien Bodard
More information about the User
mailing list