Re: XUL app and registering third-party themes
"Reidar Djupvik" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpinstall |
|---|---|
| Message-ID | <[email protected]> |
> > For all the themes that the user don't have, a blank line is added in
>the
> > View > Apply Theme menu.
>
>I don't know why. Possibly your contents.rdf are missing something that the
>standard skins have, or maybe it's just a bug and the menu is hardcoded to
>look for some specific package's skin.
I've filed bug 152314 on the matter.
> > How can I detect what themes are installed and only register them,
>
>From the install I think there's no way to do so. At least there's no way
>to
>query the chrome system. You could maybe poke around on disk for common
>file
>names but that's kinda ugly...
>
> var hasLopburi = File.exists(
> getFolder("Profile", "chrome/lopburi.zip")); // whatever the
>filename
>
>I'm not recommending this approach.
No, that's an ugly hack. When you uninstall themes, the file remains.
> > otherwise avoid the blank lines?
>
>If you did manage to fix your contents.rdf to get the name in there (if
>that
>is the problem) then folks could switch to these themes. But if your button
>is the only thing in that theme the rest of their browser would be pretty
>ugly after the switch.
Exactly. My button would be the only thing themed.
> > Do something else?
>
>Could you ask the user on your page which themes they want installed?
Good idea! I'm using that in 0.4.1, which I just released.
Thank you very much for your help Dan.
Reidar
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx