Created
April 1, 2013 15:37
-
-
Save viezel/5285631 to your computer and use it in GitHub Desktop.
Getting FontAwesome icons as Titanium Window BackButtonTitle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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