[jboss-user] [JBoss Portal] - Re: Portal Themes and Richfaces

wesleyhales do-not-reply at jboss.com
Thu Mar 5 09:01:57 EST 2009


This would be cool if you could create it and submit it back to the portlet bridge project. I could add it as a bridgelet.

Here is what you need to do to match the current portal theme:

1. Create a file called renewal.skin.properties (if this is the theme you are trying to match, if not, name it something else besides "renewal") and place it in your RichFaces applications WEB-INF/lib.

2. Here is a sample properties file I had laying around:
#Colors
headerBackgroundColor=#FFD863
headerGradientColor=#FF9B19
headerTextColor=#000000
headerWeightFont=bold

generalBackgroundColor=#FFFFFF
generalTextColor=#000000
generalSizeFont=12px
generalFamilyFont=Tahoma, Verdana, sans-serif

controlTextColor=#000000
controlBackgroundColor=#ffffff
additionalBackgroundColor=#FFFFFF

shadowBackgroundColor=#000000
shadowOpacity=1

panelBorderColor=#C0C0C0
subBorderColor=#ffffff

tabBackgroundColor=#dcdcdc
tabDisabledTextColor=#dcdcdc

trimColor=#dcdcdc

tipBackgroundColor=#dcdcdc
tipBorderColor=#dcdcdc

selectControlColor=#dcdcdc


generalLinkColor=#0078D0
hoverLinkColor=#0090FF
visitedLinkColor=#0090FF

# Fonts
headerSizeFont=12px
headerFamilyFont=Tahoma, Verdana, sans-serif

tabSizeFont=12
tabFamilyFont=Tahoma, Verdana, sans-serif

buttonSizeFont=12
buttonFamilyFont=Tahoma, Verdana, sans-serif

tableBackgroundColor=#FFFFFF
tableFooterBackgroundColor=#cccccc
tableSubfooterBackgroundColor=#f1f1f1
tableBorderColor=#C0C0C0


3. Next just change the colors to match the renewal theme. And place this in your web.xml:
<context-param>

        <param-name>org.richfaces.SKIN</param-name>

        <param-value>renewal</param-value>

    </context-param>

4. Read more about it here and post on the forum when you are done.
http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/ArchitectureOverview.html#CreatingAndUsingYourOwnSkinFile

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215307#4215307

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215307



More information about the jboss-user mailing list