XUL app and registering third-party themes
Reidar Djupvik <reidardj <at> hotmail.com>
2002-06-14 12:02:29 GMT
Hello,
I'm making a XUL app called the Home Button (found at
http://home.no.net/trihand/mozilla/home/en/ ). In version 0.4 I added
support for some of the themes at http://themes.mozdev.org/ , but I found
out there were some problems with the theme support.
For all the themes that the user don't have, a blank line is added in the
View > Apply Theme menu.
Secondly: My package is installed in the Chrome (Mozilla/chrome) folder, and
the extra skin files are installed and registered in the Chrome folder too.
This works well with Classic and Modern, but third-party themes are
installed in the Profile folder.
How can I detect what themes are installed and only register them, or
otherwise avoid the blank lines? Should I change my app to install in the
Profile folder? (I have tried to experiment with it using a constant
PROFILE_CHROME (the documentation doesn't mention it, seems to be outdated),
but it didn't work.) Or should I give up and live at the mercy of the theme
creators? Do something else?
If someone can help me, I will be very thankful, as this problem is stealing
the time i ought to be sleeping.
Heres the install.js for 0.4:
initInstall("Home Button", "home", "0.4");
setPackageFolder(getFolder("Chrome"));
addFile("home.jar");
(Continue reading)