[Project_owners] Firefox resize icon in toolbar

Chris Neale cdn at mozdev.org
Fri Jan 14 14:45:04 EST 2005

On Thursday 13 Jan 2005 16:53, Didier Ernotte wrote:
> Hi,
> I have added a toolbarbutton in the toolbarpalette of firefox in my
> extension's overlay, but I have a problem with the size of the icon.
> There is a checkbox in the toolbar/customize dialog that controls the
> size of the icons (maybe 16x16 and 32x32) and I want to be notified
> when the size is changed. Any one knows how to do that ? I have noticed
> in firefox source that a "iconsize" attribute in defined with the
> "small" value. Do I have to add a broadcaster to observe this attribute
> ?
> Thanks
> Didier

You just need two css declarations :

#your-button {

toolbar[iconsize="small"] #your-button {

Why complicate matters ?




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

get Orbit3+1, Orbit Retro and other Mozilla themes from : 

More information about the Project_owners mailing list