Setting an Application Skin

The Application class setApplicationSkin method, which has the following signature, sets the skin for the current application.

setApplicationSkin(skin: JadeSkinApplication);

The skin consists of a collection of form and control skins. (One of the collections may be empty.) When you call this method to set a skin, any existing skin for the application is replaced.

When the Window class ignoreSkin property is set to false, each form that is active or subsequently loaded applies the form skin that matches the value of the skinCategoryName for the form. If no matching form skin is found, a skin is not applied to that form.

Each control that is active or subsequently loaded applies the corresponding control skin matching the value of the skinCategoryName property. If there is no matching control skin or the value of the ignoreSkin property is true, the control is not drawn with a skin.

Changing a skin object after this method is called has no impact on the displayed skin. To apply any skin changes dynamically, you must call app.setApplicationSkin again.

To clear the application skin (cancel the skin display), call this method again with a null value, as follows.

app.setApplicationSkin(null);