Skip to content

Instantly share code, notes, and snippets.

@viezel
Created April 1, 2013 15:37
Show Gist options
  • Save viezel/5285631 to your computer and use it in GitHub Desktop.
Save viezel/5285631 to your computer and use it in GitHub Desktop.
Getting FontAwesome icons as Titanium Window BackButtonTitle
Alloy.Globals.fontAwesome = require('IconicFont').IconicFont({
font: 'FontAwesome'
});
Alloy.Globals.fontAwesomeBackButton = Alloy.Globals.fontAwesome.icon('icon-chevron-left');
var NappAppearance = require('dk.napp.appearance');
NappAppearance.setGlobalStyling({
barButton:{
color:"#ffffff",
shadowColor: "transparent",
font:{
fontFamily: "FontAwesome",
fontSize:"26dp"
}
},
backButton:{
backgroundImage:"/images/transparent.png" //this is a transparent image (25x32)
}
});
"Window[platform=ios]": {
backButtonTitle: Alloy.Globals.fontAwesomeBackButton
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment