You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Philippe Hennes (JIRA)" <de...@myfaces.apache.org> on 2006/06/15 13:19:30 UTC

[jira] Commented: (TOBAGO-80) Recommendation needed for exchanging a tobago style sheet

    [ http://issues.apache.org/jira/browse/TOBAGO-80?page=comments#action_12416317 ] 

Philippe Hennes commented on TOBAGO-80:
---------------------------------------

You can change the image size of the toolbar. To achive this you have to do at least 2 things:

1. Adopt the image size in the appropriate style classes
.tobago-toolBar-button-image-big {
}

.tobago-toolBar-button-image-small{
}

2. Adopt the size in the appropriate tobago-theme-config.properties file
# small is the image size and off|bottom|right is the text position
ToolBar.small_off_Height=36
ToolBar.small_bottom_Height=53
ToolBar.small_right_Height=36
ToolBar.big_off_Height=50
ToolBar.big_bottom_Height=70
ToolBar.big_right_Height=50
ToolBar.off_off_Height=36
ToolBar.off_bottom_Height=36
ToolBar.off_right_Height=36
ToolBar.fixedHeight=30
ToolBar.buttonMenuWidth=15

If you want to change this for just on application you can define an addtional resource path in the tobago-config.xml of your webapplication and add this path to your webapp folder of the application. 

<resource-dir>tobago-app</resource-dir>

in this folder you generate the normal path pointing to the files overwriting the parent files.

i.e.:
tobago-app/html/scarborough/standard/style/style.css
and
tobago-app/html/scarborough/standard/property/tobago-theme-config.properties





> Recommendation needed for exchanging a tobago style sheet
> ---------------------------------------------------------
>
>          Key: TOBAGO-80
>          URL: http://issues.apache.org/jira/browse/TOBAGO-80
>      Project: MyFaces Tobago
>         Type: Wish

>   Components: Themes
>     Reporter: Richard van Nieuwenhoven
>     Assignee: Philippe Hennes
>     Priority: Minor

>
> I have a requirement to change the size of the images on the toolbar widget to exactly 22px(currently tobago uses two other sizes : small->16px, big->32px). So i have two basic questions:
> - What is the recommended way to exchange a tobago style sheet for one`s project requirements i.e. sould i replace the org\apache\myfaces\tobago\renderkit\html\scarborough\standard\style\style.css with image size set by the class .tobago-toolBar-button-image-small to 22?
> - Are there any dependencies on the layout calculations in the ToolbarRenderer that i have to take into account?
> - Or is there some other way to overwrite the image sizes?
> regards,
> Ritchie

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira