Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java System Portal Server 6 2004Q2 Desktop Customization Guide 

Chapter 12
Changing Desktop Colors

This chapter describes how to change the color for various Desktop components, such as header, footer, font color in the header and footer, and so on. This chapter contains the following:


Changing Desktop Colors

Most of these colors are part of the global theme attributes. See Chapter 13, "Customizing the Global Themes" for more information.

    To Change the Desktop Colors
  1. Use Table 12-1 to determine what you want to change and what file you need to change. This two column table lists the Desktop component to customize in the first column, the files to edit in the second column, and the corresponding theme attribute in the third column.
  2. Table 12-1  Files to Customize to Change Desktop Colors  

    Desktop Component to Customize

    File to Edit in /etc/opt/SUNWps/desktop/default/

    Theme Attribute

    Header background color

    JSP-based containers:

    • ./JSPSingleContainerProvider/header.jsp  
    • ./JSPTabContainer/header.jsp  
    • ./JSPTableContainerProvider/header.jsp
    • ./PredefinedFrontPageFramePanelContainerProvider/header.jsp
    • ./PredefinedFrontPageTabPanelContainerProvider/header.jsp
    • ./PredefinedSamplesTabPanelContainerProvider/header.jsp

    Frame-based containers:

    • ./FrameTabContainer/banner.jsp
    • ./PredefinedSamplesFramePanelContainerProvider/header.jsp

    brandBgColor

    Footer background color

    JSP-based containers:

    • ./JSPSingleContainerProvider/menubar.jsp  
    • ./JSPTabContainer/menubar.jsp  
    • ./JSPTableContainerProvider/menubar.jsp
    • ./PredefinedFrontPageFramePanelContainerProvider/menubar.jsp
    • ./PredefinedFrontPageTabPanelContainerProvider/menubar.jsp
    • ./PredefinedSamplesTabPanelContainerProvider/menubar.jsp

    Frame-based containers:

    • ./FrameTabContainer/menubar.jsp
    • ./PredefinedSamplesFramePanelContainerProvider/menubar.jsp

    brandBgColor

    Font color in the header and footer

    The related JSPs are the header.jsp and menubar.jsp that listed in header background color and footer background color.

    headerFontColor

    Selected tab color

    JSP-based containers:

    ./JSPTabContainer/selectedTab.jsp

    Frame-based containers:

    ./FrameTabContainer/selectedTab.jsp

    titleBarColor

    Content Page color

    ./JSPContentContainer/contentLayoutBar.jsp  ./JSPEditContainer/contentLayoutBar.jsp  ./JSPLayoutContainer/contentLayoutBar.jsp  ./TabJSPEditContainer/contentLayoutBar.jsp

    (none)

    Layout Page color

    ./JSPLayoutContainer/layoutedit.jsp

    (none)

    Desktop body

    ./JSPTableContainerProvider/tabtable.jsp

    tableBgColor

  3. Edit the appropriate file.
  4. In almost all case, make modifications to the bgcolor=value statement to change the color. In the case of the font color in the header and footer, change the color inside of the FONT tag for the specific link.

  5. In the directory where you make the change, run the following command:
  6. touch *.jsp

    (Or, if you know the parent JSP file, just run the touch command on that file.)

  7. Reload the Desktop.


Changing the Default Color Scheme for an Organization

There are two ways in which to provide a new color scheme and layout for an organization:



Previous      Contents      Index      Next     


Copyright 2004 Sun Microsystems, Inc. All rights reserved.