Adding a Theme Icon
You can package a theme icon with a theme to give the user a preview of how the theme will change the layout of Confluence. If you do not specify a custom icon for your theme, a default icon will be shown in the preview.
Defining the theme icon in the atlassian-plugin.xml
Here is an example where an icon called my-theme-icon.gif is used in the Dinosaur Theme:
The resource parameter takes three arguments:
- Name: The name of the icon ( has to be themeicon.gif).
- Type: The type of resource-in this instance, 'download'.
- Location: The location of the file represented in the jar archive you will use to bundle your theme.
The icon will automatically appear on the themes screen in the space and global administration and will be displayed next to the text and description of the theme.
Creating your own theme icon
In order to keep the look and feel of the icons consistent, we recommend that you base the icon style on icons shipped with the Confluence themes. A good starting point when creating new icons is to use the default theme icon: