Skip to content

Instantly share code, notes, and snippets.

@nuno
Last active December 23, 2015 08:29
Show Gist options
  • Select an option

  • Save nuno/6608540 to your computer and use it in GitHub Desktop.

Select an option

Save nuno/6608540 to your computer and use it in GitHub Desktop.
My version of start development "app.tss" style file. AKA reset for Alloy styles.
"Window": {
backgroundColor: "#fff"
},
"Window[platform=android]":{
modal: false, // make android windows all heavyweight
backgroundColor:"#fff",
},
"Label[platform=android]": {
color: "#000" // all platforms except Android default to black
},
"Label": {
width: Ti.UI.SIZE,
height: Ti.UI.SIZE
},
"Button": {
height: Ti.UI.SIZE,
width: Ti.UI.SIZE
},
"ImageView[platform=ios]": {
//preventDefaultImage: true // never show ugly image while loading remote IN PRODUCTION, BUT, comment out for dev.
},
"TextField": {
borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED // common default style
},
"TextField[platform=android]": {
height: Ti.UI.SIZE
},
// Values for start development, will'b RE-styled in appropriate files with Id's or class's
// Reset this colors to "white" again for production
"View": {
width: Ti.UI.SIZE,
height: Ti.UI.SIZE,
backgroundColor: "gray"
},
"TableView": {
backgroundColor: "orange"
},
"TableViewRow": {
backgroundColor: "green"
},
"ListView": {
backgroundColor: "blue"
},
"ListItem": {
backgroundColor: "red"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment