You CAN make the badge transparent.
Please read the document, it's in there:
http://code.google.com/chrome/extensions/browserAction.html#method-setBadgeBackgroundColor
You can set the background color to a defined opacity.
Enter this before you set the badge text:
chrome.browserAction.setBadgeBackgroundColor({"color": [225, 0, 0,
100]});
The [255, 0, 0, 100] (or you can call it RGBA) means the color is red
and opacity is 100 out of 255 (half-transparent).
The position of the badge can't be set by the extension so sorry. :(
Hopes this will help you.
Derek
On 9月10日, 下午3時29分, Arne Roomann-Kurrik <
kur...@chromium.org> wrote:
> Without using canvas this isn't possible. I'd argue that badge consistency
> across extensions is a desirable feature for end users.
>
> ~Arne
>
>
>
>
>
>
>
> On Fri, Sep 10, 2010 at 1:18 PM, Developer09 <
marc.skaw...@gmail.com> wrote:
> > I would like to write some text over my extension icon like
> > setBadgeText does it but. But the problem is that setBadgeText doesn't
> > allow to set a transparent background and the position of the text
> > can't be set also.
>
> > Does anyone know an alternative how to handle that without using
> > canvas?
>
> > Thanks
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to
chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> >
chromium-extensions+unsubscr...@chromium.org<
chromium-extensions%2Bunsubscr...@chromium.org>
> > .