Badged Widgets with the Firefox 4 Add-on SDK

Earlier tonight, Elisée came into #jetpack with some questions, and we got to talking about badging on widgets. He’d built a solution for his project, but we both agreed it should be easier. It’s something that we’ve gotten quite a few requests for, so using Elisée’s approach, I made a standalone module for badging Widgets.

Module source code (and example).

The BadgedWidget API allows you to specify badge text, background color, and background opacity. The API needs to be properly integrated into the core Widget object, should allow updating each property individually, and a few other niceties (full control over styling?). But for now, here’s a bird in your hand. If you’ve got suggestions, let me know in the comments. Screenshot below.



3 Comments on “Badged Widgets with the Firefox 4 Add-on SDK”

  1. […] Planet Mozilla No Comments March 27, 2011 By Giovanni Panasiti in Planet Mozilla Tags: Addon, Ayala, Badged, Dietrich, Firefox, Widgets « Rumbling Edge – Thunderbird: 2011-03-26 Calendar 1.0 builds […]

  2. […] Excerpt from: Badged Widgets with the Firefox 4 Add-on SDK « […]

  3. Wes Kocher says:

    Might be nice on the tab module, too, for the favicons.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s