Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using 'standard' thunderbird icons in extension

10 views
Skip to first unread message

neandr

unread,
May 25, 2011, 5:50:29 AM5/25/11
to
Within an extension I would like to use the icons also used with the
main applications -- thunderbird, seamonkey, postbox.

classic.jar has a "primaryToolbar.css" which defines:

.delete-button {
list-style-image: url("moz-icon://stock/gtk-delete?size=toolbar");
}

.delete-button[disabled] {
list-style-image:
url("moz-icon://stock/gtk-delete?size=toolbar&state=disabled");
}

I expected to have entries like the following to address images on
collections like: "mail-toolbar.png"

#button-compact {
list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
-moz-image-region: rect(0px 312px 24px 288px);
}


Where can I find an overview about "url("moz-icon://stock/.."?

Günter

PS It should work with TB3.3 and SM 2.x also!

Philip Chee

unread,
May 25, 2011, 6:21:49 AM5/25/11
to
On Wed, 25 May 2011 11:50:29 +0200, neandr wrote:
> Within an extension I would like to use the icons also used with the
> main applications -- thunderbird, seamonkey, postbox.
>
> classic.jar has a "primaryToolbar.css" which defines:
>
> .delete-button {
> list-style-image: url("moz-icon://stock/gtk-delete?size=toolbar");
> }
>
> .delete-button[disabled] {
> list-style-image:
> url("moz-icon://stock/gtk-delete?size=toolbar&state=disabled");
> }
>
> I expected to have entries like the following to address images on
> collections like: "mail-toolbar.png"
>
> #button-compact {
> list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
> -moz-image-region: rect(0px 312px 24px 288px);
> }

Of course Third Party themes have no obligation to name their images the
same or format them the same way or have the same CSS.

> Where can I find an overview about "url("moz-icon://stock/.."?

These come from whatever Gnome theme you have installed on your Linux
box. Which means that these won't work on Windows or Mac (or on Linux
installations that don't have Gnome installed, or on QT versions of
Firefox, whenever the moon is in a gibbous mood.

Phil

--
Philip Chee <phi...@aleytys.pc.my>, <phili...@gmail.com>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.

Arivald

unread,
May 25, 2011, 6:59:47 AM5/25/11
to
W dniu 2011-05-25 11:50, neandr pisze:


Just copy image URL and related CSS using JS, if You can't use stnadard
classes (like "delete-button").

--
Arivald

neandr

unread,
May 25, 2011, 12:55:52 PM5/25/11
to

Thanks Philip, thanks Arivald,
after some more recherches and having in mind what you posed, I decided
to have my own icons composed from Tango_project.

Hoped to define the list-style-image with *one* definitions, but I
learned they are different on different platforms, not the class/id defs
but the CSS file content.

Günter

0 new messages