appcelerator/titanium_mobile — pull request #549 by ayeung (2011-10-11 23:17:41+00:00)
Title: Opacity for TiUILabel

Fix issue where opacity was not working for TiUILabel.

Use the following for testing:

var win = Ti.UI.createWindow({ backgroundColor:'#fff' });
var msg = {
container: Ti.UI.createView({ bottom:10, width:220, height:130, opacity:0.0}),
one: Ti.UI.createLabel({ text:'1 opactiy', textAlign:'center', font:{fontFamily:'Helvetica Neue', fontWeight:'bold', fontSize:12}, color:'#333', opacity:1.0 }),
two: Ti.UI.createLabel({ top:0, height:32, text:'0.1 opactiy', textAlign:'center', font:{fontFamily:'Helvetica Neue', fontWeight:'bold', fontSize:12}, color:'#333', opacity:0.1 }),
three: Ti.UI.createLabel({ bottom:0, height:30, text:'0.0 opacity', font:{fontFamily:'Helvetica Neue', fontSize:10}, color:'#333', opacity:0.0 })
};

msg.container.add(msg.one);
msg.container.add(msg.two);
msg.container.add(msg.three);

win.add(msg.container);
win.open();

This should display text with opacity of 1, .1, and 0. (The one with 0 opacity should be invisible)