viezel / NappUI

A collection of extended functionality for the UI components of Titanium SDK
Other
121 stars 34 forks source link

Translucent #19

Closed dezinezync closed 11 years ago

dezinezync commented 11 years ago

AFAIK, Ti doesn't support the Translucent window navBars and tabBars in 3.1.3. It would be cool to have to features via NappUI. I'm comfortable with implementing them, although I thought we could discuss upon the same.

We can also leverage this cool snippet https://gist.github.com/alanzeino/6619253 for saturated navBars like Facebook 6.5 and Twitter.

viezel commented 11 years ago

Hi there.

Sure thing. That's a great idea. Not sure when titanium will add that support, but you have the time and knowledge to implement it, please go ahead. People love those small features :)

dezinezync commented 11 years ago

Awesome. Shall send a PR soon. Anything else you think that could be implemented in this update? If not, feel free to close this ticket. :)

Cheers, Nikh.

On Sun, Sep 22, 2013 at 6:26 PM, Mads Møller notifications@github.com wrote:

Hi there. Sure thing. That's a great idea. Not sure when titanium will add that support, but you have the time and knowledge to implement it, please go ahead.

People love those small features :)

Reply to this email directly or view it on GitHub: https://github.com/viezel/NappUI/issues/19#issuecomment-24881531

sindresorhus commented 11 years ago

Using extendEdges and barColor works for me with Ti 3.1.3

dezinezync commented 11 years ago

Could you include an example please? 

Cheers, Nikh.

On Sun, Sep 22, 2013 at 9:13 PM, Sindre Sorhus notifications@github.com wrote:

Using extendEdges and backgroundColor works for me.

Reply to this email directly or view it on GitHub: https://github.com/viezel/NappUI/issues/19#issuecomment-24884397

sindresorhus commented 11 years ago
var win = Ti.UI.createWindow({
    barColor: '#1d62f0',
    extendEdges: [Ti.UI.EXTEND_EDGE_ALL],
    autoAdjustScrollViewInsets: true
});

win.open();
dezinezync commented 11 years ago

@sindresorhus Nice job! I missed out on the fact that extendEdges requires an array. My bad. This works very effictively so I guess no need to extend it any further. Works brilliantly with a image instead of barColor as well. Thanks a lot.