Alpha value is not applied when color is set to 0 0 0 (black)

Bug #789604 reported by Kai Hendrik Behrends
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Screenlets
Confirmed
Low
Unassigned

Bug Description

I'm trying to write a screenlet and the first thing I'm doing is adding a rectangle and coloring it.
See the code here: http://paste.ubuntu.com/614223/
When i set the color to 0 0 0 (black) and add an alpha e.g. 0.5 the alpha doesn't get applied other colors than black work just fine.
(another thing why doesn't the font i set get applied too?)

Märt Põder (boamaod)
Changed in screenlets:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Märt Põder (boamaod) wrote :

Setting of the font does not work because you don't set only family of the font, but also size and weight. This is not supported like that because of pango.FontDescription set_family does not support it. I filed a separate bug report for that, see https://bugs.launchpad.net/screenlets/+bug/789775.

Revision history for this message
Märt Põder (boamaod) wrote :

This bug seems to be quite hard to track. I think you can avoid the problem just now by describing the default color as 0.01 0.01 0.01 (almost black).

Revision history for this message
Kai Hendrik Behrends (kbehren) wrote :

Yes that's they way I'm avoiding the behavior right now.
This also affects the Clear Calendar and the Clear RSS Screenlets i believe.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.