How can we use the new button style in the fleet skin

Is there an easy way to use that new button style from the SmartClient skin in the fleet skin?

Hi Pallen,

Yes, in outline:

  • grab the definition of the IButton class from the “SmartClient” load_skin.js related to IButtons and replace the corresponding block in your “fleet” load_skin.js (note that we recommend copying skins before modification, to ease upgrade - instructions in QuickStart Chapter 9)

  • change various components, such as the Window and Dialog, to use IButton, just as you see in the SmartClient skin (search for “IButton”)

  • copy the media for the button from the “SmartClient” skin into your copy of the “fleet” skin

  • if you weren’t already, use isc.IButton.create() for anywhere in your application code that you directly create buttons that should have the new appearance