Creating a Theme
From LongJump Support Wiki
ISVs have the ability to create a new GUI theme for the platform using jQuery and CSS.
To replace an existing theme (e.g. "tan"):
- Go to ThemeRoller to create the theme.
ThemeRoller lets you interactively select colors and styles for GUI items until you get the look you want. It then generates a css/ subfolder with images and a CSS file. That subfolder is the part that needs to be integrated into the platform. - Download the zip file for the theme. Choose all components and version: 1.8.5
- From the zip file, extract the css/ directory to networking/css/themes/tan:
- In networking/css/themes/tan/css/custom_theme rename jquery-ui-1.8.5.custom.css to jquery-ui-1.8.2.custom.css
- In your browser, and change the platform theme to tan.
Your theme is loaded.
- Considerations
-
- Save your theme. When you upgrade the platform, the custom theme will be overwritten with the standard theme. Replace it with your custom version to reactivate your custom theme.
- You can also create a new theme choice by modifying ColorManage.jsp, as explained below. After an upgrade, you'll need to update ColorManage.jsp, as well.
To add a new choice to the Theme selection dropdown:
- Create a new theme by following the instructions in step #1 above.
- Create a folder in networking/css/themes.
Name it for your theme. For example: networking/css/themes/myNewTheme - Download the zip file for the theme and copy its css/ folder into the new directory.
Creating, for example: networking/css/themes/myNewTheme/css - In the css/ folder, rename the CSS file to jquery-ui-1.8.2.custom.css
- Add your new option to ColorManage.jsp:
<select name="theme" class="dropDown1"> <option value="dark_blue" <%=theme.equals("dark_blue") ? "selected" : ""%>>Dark Blue</option> ... <option value="dark_red" <%=theme.equals("dark_red") ? "selected" : ""%>>Dark Red</option> <option value="myNewTheme" <%=theme.equals("myNewTheme") ? "selected" : ""%>>My New Theme</option> </select>