Skip to content

Instantly share code, notes, and snippets.

@tuki0918
Last active December 13, 2015 22:58
Show Gist options
  • Save tuki0918/4987949 to your computer and use it in GitHub Desktop.
Save tuki0918/4987949 to your computer and use it in GitHub Desktop.
navBarStyle = (win, title, color='#666')->
win.barColor = '#eee'
win.backButtonTitle = '戻る'
#win.barImage = 'images/navber_bg.png'
#do win.hideTabBar
titleLabel = Ti.UI.createLabel
text: title
textAlign: 'center'
shadowColor: '#ddd'
shadowOffset: x:2, y:2
color: color
font:
fontSize: 20
#fontFamily: ''
fontWeight: 'bold'
win.setTitleControl titleLabel
return
exports.navBarStyle = navBarStyle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment