File:  [mozdev] / chameleon / www / documentation / xpi_instructions.html
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Tue Feb 20 16:10:07 2001 UTC (19 years, 3 months ago) by petejc
Branches: MAIN
CVS tags: HEAD, CHAMELEON_0_02B_BRANCH
fixing windows path to theme builder dir

--pete

<xmp>

Install Instructions

ThemeBuilder saves your work in a form that makes it easy to 
package and distribute when you are ready. Each of the themes
you develop is saved in its own subdirectory in the theme projects
directory. If you have been using the defaults in the Theme Builder 
tool, your theme_projects directory should be located in one of the
following locations: 
        Windows: C:\Windows\Application Data/Mozilla\Users50\theme_projects\
        Unix: cd .mozilla/default/theme_projects/

Theme subdirectories in the theme projects folder all have the 
same structure:

theme_projects
        my_theme
                communicator
                editor
                global
                messenger
                navigator
                
                contents.rdf
                my_theme.tb
                
                                        
        blue_moon      
                communicator
                ...

To create an installable theme out of your saved work:

1. Zip up the contents of the theme's main subdirectory and give the zip 
archive the suffix ".jar." For example, to make a distributable version 
of the "my_theme" theme from above, zip up the entire my_theme directory 
just under theme_projects and name it "my_theme.jar."

on Unix: zip -r ../my_theme.jar *

on Windows (from windows explorer)
	a. Edit->Select All
	b. Right Click on the selected files -> Add to Zip
	c. Deselect in zip options `Save full path info'

	
2. Create an install.html page using this code.


<script>
function installTheme(fname, tname) { 
  InstallTrigger.installChrome(InstallTrigger.SKIN, fname, tname); 
}
</script>

<H3>Sample Skin Install Page</H3>

<center>
<a href="javascript:installTheme('my_theme.jar', 'my_skin');">Install my_theme</a>
<br>
</center>


3. Launch Netscape 6 and open up the newly created web page above by typing 

  file://path/to/this/page/install.html

4. Click on the link and finish the install.
   
5. You may need to restart Netscape 6 in order to use your new skin.

6. Go to View->Apply Theme->my_theme
   Your theme should be included in the list of available Themes.

7. Click OK

   Netscape 6 applies the theme.

This eventually will be all done for you by the Theme Builder.

</xmp>


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>