This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Changing Portal Theme
Portal users can select their desired themes and activate them on the Gadget Portal. Follow the instructions below to change the theme of your Gadget Portal.
1. Log on to the Gadget Server Management Console.
2. In the "Manage Gadget Server" menu, click the "Theme Management" link.
3. The "Manage Portal Themes" page opens.
Themes can be selected in two ways.
- By uploading new user-specific custom themes.
- By selecting from pre-defined Gadget Server portal themes.
Uploading Custom Themes
4. Browse the custom theme you want to upload and click "Upload".
When a portal user is going to upload his/her own custom theme, he/she has to upload a .zip file which should adhere to a specific tree structure. For example, the following tree structure shows the hierarchy for a predefined theme called "GS-Dark".
. |-- black.png |-- images |Â Â |-- 1px.gif |Â Â |-- addGadgetsBg.jpg |Â Â |-- arrow_right.gif |Â Â |-- dashboard.gif |Â Â |-- defaultGadgetsBg.jpg |Â Â |-- gadget-close.gif |Â Â |-- gadgetDescriptionBg.jpg |Â Â |-- gadget-settings.gif |Â Â |-- gadget-toggle-down.gif |Â Â |-- gadget-toggle-settings.gif |Â Â |-- gadget-toggle-up.gif |Â Â |-- gs-header-logo.gif |Â Â |-- hide.gif |Â Â |-- infoCardBg.jpg |Â Â |-- loading.gif |Â Â |-- loginPageImage.jpg |Â Â |-- logoBg.jpg |Â Â |-- mainBg.jpg |Â Â |-- mainTabsBg.jpg |Â Â |-- maximize.gif |Â Â |-- minimize.gif |Â Â |-- myshadow.png |Â Â |-- powered_gadget_server.gif |Â Â |-- show.gif |Â Â |-- spacer.gif |Â Â |-- table-header.gif |Â Â |-- tabsBg.jpg |Â Â `-- Thumbs.db |-- localstyles |Â Â `-- gadget-server.css `-- theme-conf.xml
The theme-conf.xml file describes the theme configurations such as the theme name, author, css file path, thumbnail, description about the theme etc. The configuration for the "GS-Dark" theme is as follows.
<resource path="/themes/test-2/conf" isCollection="true"> <mediaType>application/octet-stream</mediaType> <properties> <property key="name">GS Dark</property> <property key="author">WSO2</property> <property key="css.name">localstyles/gadget-server.css</property> <property key="thumb">black.png</property> <property key="description">The theme is clean and simple all to help you get a stylish and functional look. Theme is also designed with customization in mind. Meaning, with a little work, the theme can be completely personalized. </property> </properties> </resource>
Selecting From Predefined Themes
The Gadget Sever provides several portal themes by default under Select Default Theme. The currently active theme is marked as active.
To add a default theme or an added custom theme, simply click the Activate button associated with each theme.