Localizing themes for images

About this task

The theme entries for the Image theme are specified in the Image element under the ThemeEntry element. In the Image element, specify the path for the locale-specific image to be used in the theme in the Path attribute.

To store the locale-specific images:

Procedure

  1. Create an icons folder in the <INSTALL_DIR>/repository/rcp/extn directory.
  2. Put all the locale specific images in this newly created <INSTALL_DIR>/repository/rcp/extn/icons folder.

Results

Following is a sample data from the <Plug-in_ id>_<theme_name>.ythm file:

   <?xml version="1.0" encoding="UTF-8"?>
   <Theme id="sapphire">
     <ThemeEntry Name="Label">
        <Font Height="9" Name="Tahoma" Style="NORMAL"/>
        <ForegroundColor Blue="0" Green="0" Red="0"/>
        <BackgroundColor Blue="255" Green="255" Red="255"/>
     </ThemeEntry>
     <ThemeEntry Name="CComboEditor">
        <Font Height="8" Name="Tahoma" Style="NORMAL"/>
        <BackgroundColor Blue="255" Green="255" Red="255"/>
        <ForegroundColor Blue="0" Green="0" Red="0"/>
     </ThemeEntry>
     <ThemeEntry Name="Text">
        <Font Height="8" Name="Tahoma" Style="NORMAL"/>
        <ForegroundColor Blue="0" Green="0" Red="0"/>
        <BackgroundColor Blue="255" Green="255" Red="255"/>
     </ThemeEntry>
    <ThemeEntry Name="Composite">
        <Font Height="10" Name="Tahoma" Style="NORMAL"/>
        <BackgroundColor Blue="255" Green="255" Red="255"/>
        <ForegroundColor Blue="198" Green="146" Red="140"/>
    </ThemeEntry>
    <ThemeEntry Name="DateLookup">
        <Image Path="/icons/calendar.gif"/>
    </ThemeEntry>
    <ThemeEntry Name="HeaderTriangle">
        <Image Path="/icons/header_triangle.jpg"/>
    </ThemeEntry>