Portlets Style Element Properties

Working with Colors and Fonts 11-9 Figure 11–3 Same Portlet with Different Body Color Settings Hand-coded portlets created for Oracle Portal may use their own style instead of the style of the page on which they are placed. In such cases, these portlets will use the style specified when they were created rather than any style you apply. Use care when changing a style: the changes you make may affect the appearance of all the portlets that use the style. To change the portlet body color: 1. Log in to Oracle Portal.

2. Click the Build tab to bring it forward.

3. From the Page Groups portlet Work In drop-down list, select the page group that

owns the style to be edited. By default, the Page Groups portlet is located on the Build tab of the Portal Builder page.

4. Under Styles in the Layout Appearance section, click the style to be edited.

This opens the Properties tab of the Edit Style page.

5. In the Style Element Type section, choose Portlets.

6. In the Style Element Properties section, choose Portlet Body Color.

For a list and description of style element properties relevant to portlets, see Section 11.3.3, Portlets .

7. Click a color in the color palette, or enter the color’s hexadecimal value in the

Background Color field, for example CCFFFF. Clicking in the palette automatically populates the Background Color field with the color’s hexadecimal value.

8. Click Apply.

The Preview section is refreshed to show your color selection. 9. Click Close to save your changes and exit the Edit Style page.

11.5.2 Changing Portlet Header Colors, Fonts, and Edges

You can change the colors and fonts used in a portlet header by editing the style that is applied to the page on which the portlet is placed. You can also change the appearance Note: See Section 11.5.4, Controlling Styles for Page Portlets and Navigation Pages for special style considerations for page portlets and navigation pages. Tip: If the style is used by more than one page group, look in the Shared Objects page group. 11-10 Oracle Fusion Middleware Users Guide for Oracle Portal of the edges of the portlet header from square to rounded to rounded on one edge or the other. Figure 11–4 shows the same portlet with different header color and edge settings. The setting for portlet header colors also controls the color of portlet borders. Figure 11–4 The Same Portlet with Different Settings for Header Color and Edges Use care when changing a style: the changes you make affect the appearance of all pages and sub-page, tab, and item regions that use the style. To change the portlet header or sub-header:

1. Log in to Oracle Portal.

2. Click the Build tab to bring it forward.

3. From the Page Groups portlet Work In drop-down list, select the page group that

owns the relevant style. By default, the Page Groups portlet is located on the Build tab of the Portal Builder page.

4. Under Styles in the Layout Appearance section, click the style to be edited.

This opens the Properties tab of the Edit Style page.

5. In the Style Element Type section, choose Portlets.

6. To change the colors and fonts of the portlet headers:

a. In the Style Element Properties section, choose one of the following:

– Portlet Header Color This element controls the background color of the portlet header. It also controls the colors of portlet borders. Portlet headers and borders always use the colors defined for the style applied to the page that contains the portlet. – Portlet Header Text This element controls the Display Name of the portlet as it appears in the portlet header – Portlet Header Link This element controls the appearance of any link that may display in the portlet header. Such links include Help, Personalize, and About. Note: See Section 11.5.4, Controlling Styles for Page Portlets and Navigation Pages for special style considerations for portlet headers and borders. Tip: If the style is used by more than one page group, look in the Shared Objects page group.