Skin form — Styles tabStyle Presets |
|
To define your application skin efficiently, use Style Presets. Style Presets are reusable groups of settings that you define in the skin rule and then apply to multiple elements or components in the skin. When defining the presentation of elements in the skin, you can use combinations of Style Presets. An element can use one Style Preset for part of its presentation, and a different Style Preset or custom settings for the remainder of its presentation. The list of available Style Presets is filtered — only Style Presets containing applicable style elements are displayed. Custom settings apply only to a single element; they cannot be reused in other elements.
Using Style Presets in your skin rules maximizes consistency in application presentation and re-use. It also minimizes future maintenance. If you change a Style Preset, the change applies to all elements that reference the Style Preset.
Style Presets are referenced only in the Skin rule. You use Style Presets to define your application skin. To define an application skin, in the Skin rule:
Overall Font
As a best practice, use the Overall Font when defining Style Presets. This ensures a single font across your UI. You can change the font used throughout a skin in a single location.
For each Style Preset, you can specify values for Text, Border, and Background. You can change the values at any time. You can modify existing Style Presets or create new Style Presets.
To modify an existing Style Preset
When you define elements in a skin, a list of only those Style Presets containing applicable style elements appears.
For example, when defining the style for Label text, a Style Preset that does not include a Styled Text element will not display in the list of available Style Presets. The following is an example of the list of Style Presets available to an element:
If an element references a Preset Style that is not defined, an error displays when you save the rule. Resolve the error and save the rule.
To create a new Style Preset
If you upgraded a skin rule from PRPC v5.X-6.2SP2, the Standard Active
, Standard Inactive
, Sub Active
, and Sub Inactive
Style Presets are populated with the values from your Quick Create settings. When you create a new Skin rule, additional Style Presets appear.
Field |
Description |
Enable Styled Text |
Select to enable this Preset Style to use the text values that you specify here:
|
Enable Styled Border |
Select to enable this Preset Style to use the border values that you specify here:
|
Enable Styled Background |
Select to enable this Preset Style to use the background Type that you specify here:
|
If you delete a Style Preset or clear all the checkboxes associated with a Style Preset, that Style Preset is no longer defined. If any elements in the skin rule referenced this Style Preset, an error message displays when you save the rule.
Applying Style Presets to Elements in the Skin
To apply the Style Presets to elements in the skin:
If you do not want to apply a Style Preset to an element in the skin rule, you can create a custom style. As a best practice, use Style Presets to provide a consistent UI, maximize re-use, and minimize maintenance.
Removing a Style Preset from the Selection List
Disabling an out-of-the box Style Preset
Deleting a Style Preset
You can delete Style Presets that you create.
On the Styles tab, select the Style Preset that you want to delete and click .
Disabling or deleting a Style Preset may result in errors when saving the rule if elements in the skin reference the deleted Style Preset.
Default Style Presets (for new skin rules)
The following table lists the default Style Presets for new skin rules. You can modify these to meet your needs or create new Style Presets.
Default Style Presets
|
||
Standard Active | Action Strong | StandardBold |
Standard Inactive | Focus | Standard Borders |
Sub Active | Hover | Column Header |
Sub Inactive | Error | Menu Active |
Action Standard | Selected | Menu Inactive |
You cannot delete the Standard Active, Standard Inactive, Sub Active, and Sub Inactive Style Presets.
If you upgraded a skin rule from PRPC v5.X-6.2SP2, only the Standard Active, Standard Inactive, Sub Active, and Sub Inactive Style Presets appear. These style presets are populated with the values from your Quick Create settings. Additional Style Presets appear when you create a new skin.