Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

From this moment your added Visual Theme is installed and available in the OFBiz framework.

How to change the backoffice default Visual Theme

The Visual Theme that is used as default is defined in the file: /framework/common/data/CommonTypeData.xml
For example, to set the chrome theme as default, replace the line:

Code Block

<UserPreference userLoginId="NA" userPrefTypeId="VISUAL_THEME" userPrefGroupTypeId="GLOBAL_PREFERENCES" userPrefValue="DEFAULT"/>

with the following one:

Code Block

<UserPreference userLoginId="NA" userPrefTypeId="VISUAL_THEME" userPrefGroupTypeId="GLOBAL_PREFERENCES" userPrefValue="CHROME"/>

How to create a Visual Theme

An OFBiz Visual Theme consists of a simple OFBiz component installed, usually, in the themes folder. In the component, all the resources needed by the Visual Theme are defined.

The simplest way to create a Visual Theme is starting from one of the already available themes in the OFBiz themes folder.

Panel

NOTE:
You can also start from a theme that is not included in OFBiz but is available in the Gallery. This is not reccomended because there is no garantee that themes out of the OFBiz distribution are regularly updated to be compatible with the latest OFBiz. In this case just download the theme file, unzip it in the /themes/mytheme folder and apply the same procedure below skipping the very first step.




Let's say you want to create a new theme for the backoffice applications called mytheme and have selected bluelight as a starting template.

...