Confluence Docs 3.0 : Adding a theme icon This page last changed on Oct 19, 2008 by smaddox. A theme icon can be packed with a theme to give the user a little preview on 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 To include an icon in the theme, you will need to reference it as a [Downloadable Plugin Resource] from within the theme module. Here is an example where an icon called my-theme-icon.gif is being used in the Dinosaur Theme:
    <theme key="dinosaurs" name="Dinosaur Theme" class="com.atlassian.confluence.themes.BasicTheme">
        <description>A nice theme for the kids</description>
        <colour-scheme key="com.example.themes.dinosaur:earth-colours"/>
        <layout key="com.example.themes.dinosaur:main"/>
        <layout key="com.example.themes.dinosaur:mail-template"/>
        <resource name="themeicon.gif" type="download" location="com/example/themes/dinosaur/my-theme-icon.gif">
            <property key="content-type" value="image/gif"/>
        </resource>
    </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 automaticly 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 to 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 or the left navigation theme icon: !main-theme.gif! !leftnav-theme.gif! ##### RELATED TOPICS
Adding a theme icon (Confluence Docs 3.0)
Including Cascading Stylesheets in Themes (Confluence Docs 3.0)
Applying A Theme To A Space (Confluence Docs 3.0)
Themes Overview (Confluence Docs 3.0)
Applying a Theme To A Site (Confluence Docs 3.0)
Creating a Theme (Confluence Docs 3.0)
Attachments: theme_preview.png (image/png) leftnav-theme.gif (image/gif) main-theme.gif (image/gif)

Document generated by Confluence on Nov 05, 2009 23:27