mohamedmansour/my-hangouts-extension — pull request #35 by kaktus621 (2011-12-18 14:17:53+00:00)
Title: Updated Notification Badge

I changed the looks of the notification badge a bit so that it looks like the original Google+ notification badge (i.e. rounded corners and a stroke around them, see images for comparison). Furthermore I made the badge being rendered as inactive whenever the count is a non-positive number (if this is not desired, make sure to set `newItem` to false when calling the method with a `count` of zero, I didn't look where the method gets called).

Please see the comments in my commit; maybe the method for drawing a rounded rectangle should be added to the Canvas context prototype somewhere else.

![Active Badges](http://files.k621.de/active.png)

![Inactive Badges](http://files.k621.de/inactive.png)