Author Topic: Special handling of icons for MACOSX  (Read 4283 times)

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
Special handling of icons for MACOSX
« on: 2012 December 09 02:10:18 »
Hello,

I have seen a lot of conditionals like below in the BatchPreprocesing source code:
#ifneq __PI_PLATFORM__ MACOSX
   this.clearButton.icon = new Bitmap( ":/images/icons/remove.png" );
#endif

Does that mean that we skip icons setting on MACOSX in general ?

- bitli

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Special handling of icons for MACOSX
« Reply #1 on: 2013 January 03 10:33:43 »
On the Mac with the Cocoa/Aqua UI style, push buttons don't show icons customarily. For this reason we tried to avoid them in PI 1.7.

Starting from version 1.8 of PixInsight, this rule does not apply because we no longer use native platform-dependent UI styles. PixInsight 1.8 uses a universal UI style that looks and behaves exactly the same on all platforms, including Mac OS X, Windows and X11. The only exceptions are a few differences in the default fonts used on Windows and Mac OSX, and the window minimize/close buttons located at the upper left corner on Mac OS X. So you don't need most of those pesky __PI_PLATFORM__ conditionals anymore :)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/