[December 15th 2013: Updated for version 1.8.0.1071 Ripley]
Hi all,
As you surely know, the new PixInsight Core 1.8 application comes with a completely redesigned set of icons, which you can use in your scripts and modules, as usual, using Qt resource paths. For example, in JavaScript:
var btn = new ToolButton( this );
btn.icon = ":/icons/mail.png";
Note that you no longer need to instantiate Bitmap to set the icon property of a control. In previous versions of PixInsight, the above code should be written as follows:
var btn = new ToolButton( this );
btn.icon = new Bitmap( ":/icons/mail.png" );
Now you can simply assign a string to the icon property. This works with core resources as well as external resources (disk files).
The old core icons, namely all icon paths starting with ":/images/", still work because I have included a compatibility resource module in all PixInsight distributions. However, I urge all PixInsight developers to update their scripts and modules to use the new core icons. This is important to achieve a coherent look and feel on all platforms.
Attached to this post you'll find a little utility script that allows you to browse all available core icons conveniently on a dialog. Please let me know if you find any errors, and don't hesitate to ask for more icons, if you find that the existing set does not fulfill your needs.
(EDIT: Please see the last post in this thread)