[Gambas-user] Stock

Tony Morehen tmorehen at ajm-software.com
Sun Jan 3 02:29:11 CET 2021


Why not use Picture["theme/..."] to access freedesktop icons? Instead of 
"theme", you could use "themeicon", "freedesktop", "freedesktopicon", 
"desktop", "desktopicon" or whatever.

This could be done either as a re-write to the current picture class as 
it won't impact current uses or as a sub-class of Picture in the 
gb.desktop component.

BTW, you don't need the "devices" sub-path.  Freedesktop icon names are 
unique.  Benoit is right about theme icon names not being standardized.  
Some are organized theme/class/size and some theme/size/class


On 2021-01-02 3:50 p.m., Benoît Minisini wrote:
> Le 02/01/2021 à 21:35, Fabien Bodard a écrit :
>>
>> Now you can call all wanted icons  like that and it come with the
>> accurate theme.
>>
>>   hPic = Picture["icon:/16/devices/drive-removable-media-usb"]
>>
>> regards
>>
>
> I don't want that feature: Picture["icon:/..."] is for Gambas stock 
> icons, not for freedesktop icons (or whatever their real name is, icon 
> names being not standardized).
>
> Can you remove it?
>
> Accessing icons by freedesktop name through themes should be 
> implemented in the 'gb.desktop' component.
>
> Regards,
>


More information about the User mailing list