Creating style formats
Build reusable styles that define the visual presentation of UI components in your application. By associating style formats with controls and sections, you can quickly adapt the appearance of your UI to the branding requirements of your company, and maintain a consistent, user-friendly interface.
For example, you can create a separate format for all the OK buttons in your application to make your interface clearer and more intuitive.
- In the navigation pane of Dev Studio, click Records.
- Expand the User Interface category, and then click Skin.
- Open the skin that you want to edit.
- On the Component styles tab, on the right side of the window, click the Menu icon.
- In the components list, click the UI component for which you want to create a
For example: In the Controls section, click Buttons.
- On the My Formats tab, click Add new style.
- In the Create a new format window, provide a meaningful
name and a description for the format, and then click
For example: In the Format name field, enter OK button. In the Usage annotation field, enter Used for styling OK buttons.
- In the settings pane in the middle of the window, define the style
For example: To create a green OK button with bold text and no borders, perform the following steps:
- In the Text node, select Specify styles, and then set the Font weight setting to Bold.
- In the Border node, set the Left border and Right border settings to none.
- In the Background node, set the Color setting to #008000 (green).
- Click Save.
Previous topic Component style formats Next topic Styling a layout