Inventory's system design allows you to customize how the UI looks like by using themes. This section explains how to generate
your own theme.
- Making a copy of the default theme
First start by making a copy of the default theme:
This will recursively copy the default theme into a new directory where you can start work on the new theme.
cp -r default myNewTheme
- Configuring Inventory to use the new theme
Assuming your new theme directory is called 'myNewTheme', you'll need to change include/cfg.php file and edit
the $inv_data['theme'] directive to point to the new theme directory:
$inv_data['theme'] = "myNewTheme"
The value must match your directory name where the new theme resides.
- Making changes to your theme
- You can customize your new theme in the following ways:
- Changing CSS definitions this can be done by changing the CSS file inv/themes/myNewTheme/inv.css
most values inside contain comments which explain their role in Inventory. You may adjust them to create your
- Changing the icon-set provided with Inventory. You may want to provide different icons in your theme.
for that you will need to replace the files in the inv/theme/myNewTheme/icons/ subdirectories. Each such
subdirectory contains icons for different puroses:
- The general subdirectory contains generic icons that are used throughout Inventory.
- The hwType subdirectory contains icons that are used in the hardware types list.
- The menu subdirectory contains icons that are used in the menus
- The navbar subdirectory contains icons for the navigation bar (left frame)
- The osType subdirectory contains icons for the OS types list
- The swType subdirectory contains icons for the Software types list.