5.32.6 Introduction to Themes

 



 

Overview

 

Themes can be defined as that which controls the appearance of the GUI components. They are used for changing the skin of the GUI, its icons, fonts and so on. They can also change the feel and form of your environment, from providing unique styles of menus to drastically changing the window borders and decorations.

 

A theme is an entity which is used to define the set of colors, which are used to define the presentation of the various components in the GUI. Therefore, the various UI related properties such as background color for a Button, Foreground color for a Menu etc., of the components are defined in a theme.

 

Themes - The AdventNet concept

 

The WebNMS themes concept is an extension of the Java Metal themes concept. For every new theme created based on Java themes concept, a new Java class file is to be written but for creating themes using the WebNMS themes concept an XML file is required to be written. This makes the concept very easily configurable and maintainable.

 

The Theme concept preaches usage of a set of Preliminary colors (primary1, primary2, primary3, secondary1, secondary2 and secondary3.) termed as the 'Basic' Colors for defining a theme. All other colors that are configurable are grouped as 'Overridden ' colors. It is named because, the colors for these properties are taken from any of the 'Basic' colors by default. The user has the option of overriding it by specifying a different color as against the default color.

 

These Basic and Overridden colors are stored in XML files with a .thm extension under the <Web NMS Home>/Themes directory. The themes can be configured by using the configuration file namely Themes.conf present under the <Web NMS Home>/conf directory. It is imperative that the display names of the newly created themes, which are to be applied in the client must be specified in this Themes.conf files.

 

We provide a tool Theme Manager to edit the theme to your desired appearance. Some configurable options are provided to have the Theme Manager in a personalized manner.

 

List of Relevant Topics

 



 



Copyright © 2011, ZOHO Corp. All Rights Reserved.