[Project_owners] Toolbar icons in Firefox

Chris Neale cdn at mozdev.org
Mon Feb 9 15:01:31 EST 2004


On Monday 09 Feb 2004 13:58, David Murray wrote:
> Ahh, behold the weirdness.
>
> FB 0.6/0.7 handled my toolbar icon fine. Firefox though; although it
> displays the icon perfectly well on the toolbar, when it is dragged off
> the toolbar (you know, in the Customize Toolbar thing), it displays its
> icon as every single icon that's in Firefox. I can't figure out how to
> get it looking normal (searched through source and all). Anyone have any
>    ideas? Here's the overlay code:
>
> ---------------------------------------
>   <toolbarpalette id="BrowserToolbarPalette">
>            <toolbarbutton id="deepestsender-button" tooltiptext="Deepest
> Sender" oncommand="runDS(true);" class="toolbarbutton-1" label="Deepest
> Sender"/>
>    </toolbarpalette>
> ---------------------------------------
>
> CSS is looking like this:
>
> ---------------------------------------
> #deepestsender-button {
> 	list-style-image: url(chrome://deepestsender/skin/dsfb.png);
> }
> #deepestsender-button:hover {
> 	list-style-image: url(chrome://deepestsender/skin/dsfb-hover.png);
> }
> toolbar[iconsize="small"] #deepestsender-button {
> 	list-style-image: url(chrome://deepestsender/skin/dsfbsmall.png);
> }
> toolbar[iconsize="small"] #deepestsender-button:hover {
> 	list-style-image: url(chrome://deepestsender/skin/dsfbsmall-hover.png);
> }
>

consider using -moz-image-region

either auto, or rect(0, x, y, 0); where x and y are the dimensions of your 
image

-- 

cdn

--

Extensions for Mozilla-based Applications [ http://cdn.mozdev.org/ ]

get Orbit3+1, Orbit Retro and other Mozilla themes from : 
http://themes.mozdev.org/



More information about the Project_owners mailing list