Badged Widgets with the Firefox 4 Add-on SDK
Posted: March 27, 2011 Filed under: firefox, mozilla | Tags: firefox, jetpack, mozilla 3 Comments »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.

[...] 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 [...]
[...] Excerpt from: Badged Widgets with the Firefox 4 Add-on SDK « dietrich.blog [...]
Might be nice on the tab module, too, for the favicons.