Can I have an XUL panel without a shadow in my Firefox extension?
Asked Answered
A

3

7

XUL panels in a Firefox extension overlay always come with a shadow for free. How can I remove this shadow?

Example code for the shadow effect I don't want:

<popupset>
    <panel id="popuppanel" width="500" noautohide="true">
        <vbox>
            <label value="test"/>
            <label value=""/>
            <label value=""/>
            <label value=""/>
        </vbox>
    </panel>
</popupset>

And a screenshot:

Example image of shadow effect I don't want. http://img124.imageshack.us/img124/7766/shadowj.png

Ailing answered 8/3, 2009 at 13:53 Comment(0)
F
5

Use the following CSS statement:

-moz-window-shadow: none;

See also Firefox internal CSS stylesheet (mac version) for its bookmark panel.

Fitzger answered 13/11, 2009 at 9:36 Comment(0)
D
2

I think that is part of the OS's doing. Like there is also a shadow on menus in eg. notepad. Not familiar with Vista I have to say, but it's safe to say that it's OS specific.

Dwyer answered 11/3, 2009 at 21:38 Comment(1)
Hmmm, that's an interesting avenue to go down.Ailing
O
0

You can set the background color to transparent via css:

background-color: transparent;

Oberon answered 19/3, 2009 at 19:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.