Skip to content

Instantly share code, notes, and snippets.

@pegli
Last active December 14, 2015 01:38
Show Gist options
  • Save pegli/5007156 to your computer and use it in GitHub Desktop.
Save pegli/5007156 to your computer and use it in GitHub Desktop.
var styles = require('styles');
// creates { color: 'blue', font: { fontSize: 16 }, textAlign: 'right' }
var usernameLabel = Ti.UI.createLabel(_.defaults({
textAlign: 'right'
}, styles.style_classes.Label, styles.style_ids.username_label));
exports.style_classes = {
'Window': {
backgroundColor: 'white'
},
'Label': {
color: 'blue'
}
};
exports.style_ids: {
'login_screen': {
'username_label': {
font: {
fontSize: 16
}
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment