Scroll down to the next long post...
Disclaimer: *removed* because it pisses people off...
Ok, so a lot of you are now making FireFox themes, and a lot of you are wondering "How the hell do I make this classic.jar file into an installable theme?"
Here's the method which I found to work well. You'll probably have a copy of Classic.jar laying around on your computer. UnJAR the file with WinRAR and lets see what you had in there. Looks like you have some directories, structurally similar to:
skin> classic > more folders.
Go ahead and make yourself a nice clean workspace, like a new folder. Now make a new text file.
Paste following code into a text file and rename it to Contents.rdf. Make sure you replace the *** *** entries with the appropriate information.
Beginning of code:
<!-- List all the skins being supplied by this theme -->
chrome:accessKey="S"
chrome:author="***AUTHOR***"
chrome:authorURL="***WEBSITE***"
chrome:description="***COMMENTS***"
chrome:name="***THEME NAME***"
chrome:image="preview.png">
<!-- Version Information. State that we work only with major version 1 of this package. -->
End of Code
Go into your theme folder (skin > browser >). Copy folders "global", "browser", "communicator", and "mozapps" into the folder with Contents.rdf in it. Make a new ZIP folder with the same name as your theme. Rename the ZIP to JAR and put your files in it.
Also note: If your theme has directories other than "global", "browser", "communicator", and "mozapps", you will need to edit the Contents.rdf file to reflect these directories. The places which need editing are marked in RED in the above code. You'd just need to add in an extra line of code for each directory.
Example:
Lets say I had a directory called Messenger which contained stuff used in the theme. I'd add a new line of code in the Contents.rdf file to reflect this:
<?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:PinstripeXP" /> </RDF:Seq> <RDF:Description about="urn:mozilla:skin:PinstripeXP" chrome:displayName="PinstripeXP" chrome:accessKey="S" chrome:author=" " chrome:authorURL=" " chrome:description="Thanks to the original author of Pinstripe, and the AquaSoft people for porting it to Windows." chrome:name="PinstripeXP" chrome:image="preview.png"> <chrome:packages> <RDF:Seq about="urn:mozilla:skin:PinstripeXP:packages"> <RDF:li resource="urn:mozilla:skin:PinstripeXP:browser"/> <RDF:li resource="urn:mozilla:skin:PinstripeXP:communicator"/> <RDF:li resource="urn:mozilla:skin:PinstripeXP:global"/> <RDF:li resource="urn:mozilla:skin:PinstripeXP:mozapps"/> <RDF:li resource="urn:mozilla:skin:PinstripeXP:Messenger"/> </RDF:Seq> </chrome:packages> </RDF:Description> <!-- Version Information. State that we work only with major version 1 of this package. --> <RDF:Description about="urn:mozilla:skin:PinstripeXP:browser" chrome:skinVersion="1.5"/> <RDF:Description about="urn:mozilla:skin:PinstripeXP:communicator" chrome:skinVersion="1.5"/> <RDF:Description about="urn:mozilla:skin:PinstripeXP:global" chrome:skinVersion="1.5"/> <RDF:Description about="urn:mozilla:skin:PinstripeXP:mozapps" chrome:skinVersion="1.5"/> <RDF:Description about="urn:mozilla:skin:PinstripeXP:Messenger" chrome:skinVersion="1.5"/> </RDF:RDF>
There, I just had to add two lines of code for the Messenger directory. Note that in the above example, the details of the theme (such as the name) have been filled in.
To make preview: Take your image (default size is 355x85px), name it preview.png, and insert into your JAR.
The new JAR should be installable by the Themer extension or the form at Texturizer.net.
The screenshot included should show what ends up getting put into the final JAR. For the Pinstripe theme, I found that stuff inside the Editor, Messenger, and Navigator folders served no real purpose, so I deleted those folders before I packaged everything to reduce the filesize. You may find that those directories are redundant, and choose to delete them, but you don't have to.
Attached File(s)
-
theming.PNG (17.56K)
Number of downloads: 953








Sign In »
Register Now!
Help

MultiQuote