thanks for sharing. I will add it to the chapter Tips of the new book on Spec20 
:)

I remember also that there is a project to manage icon sets.

> On 20 May 2020, at 21:44, Tomaž Turk <[email protected]> wrote:
> 
> Thanks, Stephane, I'll switch to P9.
> 
> > png is better and there is a library to manage icons
> > I do not have the name but you can load icons. 
> > But look around. 
> 
> For icons I found the necessary code in ThemeIcons>>loadIconsFromUrl. Here's 
> a simplistic approach to load icons from PNGs in a local ZIP archive, if 
> somebody needs it:
> 
> | themeIcons newIcons |
> 
> newIcons := IdentityDictionary new.
> themeIcons := ThemeIcons new.
> 
> ((FileSystem zip: 'C:\icons\a.zip' asFileReference) 
>     open workingDirectory allChildrenMatching: '*.png') do:
>         [ :each | newIcons 
>             at: each base asSymbol
>             put: (themeIcons readPNGFrom: each )].
> newIcons.
> 
> Best wishes,
> Tomaz

--------------------------------------------
Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org 
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France

Reply via email to