Installing

Discuss application theming and theme development.
Post Reply
WeSaySo
Posts: 475
Joined: November 5th, 2002, 8:22 am
Location: Earth

Installing

Post by WeSaySo »

I've made a theme I want to test run on several platforms before releasing into the wild, but have been unable to get it to install. I've followed the instructions at http://www.eightlines.com/neil/mozskin/ to where I have:

\test-theme
* contents.rdf
* preview.png
* \communicator\...
* \editor\...
* \global\...
* \messenger\...
* \navigator\...

zipped up into test-theme.jar.

My contents.rdf file is:

Code: Select all

<?xml version="1.0"?>

<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:chrome="http://www.mozilla.org/rdf/chrome#">

  <!-- List all the skins being supplied by this theme -->
  <RDF:Seq about="urn:mozilla:skin:root">
    <RDF:li resource="urn:mozilla:skin:test-theme/1.0" />
  </RDF:Seq>

  <RDF:Description about="urn:mozilla:skin:test-theme/1.0"
        chrome:displayName="My Test Theme"
        chrome:accessKey="T"
        chrome:author="WeSaySo"
        chrome:description="Testing Theme for WeSaySo"
        chrome:name="test-theme/1.0"
        chrome:image="preview.png">
    <chrome:packages>
      <RDF:Seq about="urn:mozilla:skin:test-theme/1.0:packages">
        <RDF:li resource="urn:mozilla:skin:test-theme/1.0:communicator"/>
        <RDF:li resource="urn:mozilla:skin:test-theme/1.0:editor"/>
        <RDF:li resource="urn:mozilla:skin:test-theme/1.0:global"/>
        <RDF:li resource="urn:mozilla:skin:test-theme1.0:messenger"/>
        <RDF:li resource="urn:mozilla:skin:test-theme/1.0:navigator"/>
      </RDF:Seq>
    </chrome:packages>
  </RDF:Description>

  <!-- Version Information.  State that we work only with major version 1 of this
       package. -->
  <RDF:Description chrome:skinVersion="1.1" about="urn:mozilla:skin:test-theme/1.0:communicator"/>
  <RDF:Description chrome:skinVersion="1.1" about="urn:mozilla:skin:test-theme/1.0:editor"/>
  <RDF:Description chrome:skinVersion="1.1" about="urn:mozilla:skin:test-theme/1.0:global"/>
  <RDF:Description chrome:skinVersion="1.1" about="urn:mozilla:skin:test-theme/1.0:messenger"/>
  <RDF:Description chrome:skinVersion="1.1" about="urn:mozilla:skin:test-theme/1.0:navigator"/>
</RDF:RDF>


I've uploaded test-theme.jar to a server and have the following link to install it:

Code: Select all

<a href="javascript:InstallTrigger.installChrome(InstallTrigger.SKIN, 'test-theme.jar', 'My Test Theme')">install The Test Theme</a>


Mozilla shows a download progress alert with a checkbox to "Use this theme" and says "Success!" after downloading. My \profile\default\slt\chrome folder now has "test-theme.jar" in it. But the theme is not applied, it does not show up under View | Apply Theme, or give any indication that it is registered and available. I've looked at the unpacked jar for the 20020828 version of morbit for Moz1.1 and my file setup looks the same.

I am doing this only for Mozilla 1.1. No more, no less at this time.

Any help with this problem will be greatly appreciated.
Ad astra
cdn
Posts: 999
Joined: November 4th, 2002, 5:47 pm
Location: UK
Contact:

Post by cdn »

put it up somewhere so we can disassemble it,

send me a pm when you have it uploaded

the jar file should not contain the "containing directory" test-theme, should just be the:

contents.rdf
preview.png
communicator/
editor/
global/
messenger/
navigator/
WeSaySo
Posts: 475
Joined: November 5th, 2002, 8:22 am
Location: Earth

Post by WeSaySo »

cdn wrote:the jar file should not contain the "containing directory" test-theme, should just be the:

contents.rdf
preview.png
communicator/
editor/
global/
messenger/
navigator/


thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you.
Ad astra
Post Reply