Update and fix Titanium Style Sheets tests

This commit is contained in:
Glavin Wiechert 2015-05-20 12:19:12 -03:00
parent f78fa314cd
commit 25b1d5b1f5
4 changed files with 33 additions and 45 deletions

View File

@ -1,28 +1,24 @@
"Window": { "Window" :
exitOnClose: true, { exitOnClose: true,
backgroundColor: "#fff", backgroundColor: "#fff",
title: "Kochgut" title: "Kochgut"
} }
"Label" :
"Label": { { width: Ti.UI.SIZE,
width: Ti.UI.SIZE,
height: Ti.UI.SIZE, height: Ti.UI.SIZE,
color: "#555", color: "#555",
touchEnabled: false touchEnabled: false
} }
"Button" :
"Button": { { backgroundColor: "#03a9f4",
backgroundColor: "#03a9f4",
color: "#fff", color: "#fff",
borderRadius: 2 borderRadius: 2
} }
"#menu" :
"#menu": { { backgroundImage: "/images/bg.png"
backgroundImage: "/images/bg.png"
} }
".button" :
".button": { { backgroundColor: "#03a9f4",
backgroundColor: "#03a9f4",
color: "#fff", color: "#fff",
borderRadius: 2, borderRadius: 2,
width: Ti.UI.SIZE, width: Ti.UI.SIZE,
@ -30,68 +26,60 @@
top: 16, top: 16,
bottom: 16 bottom: 16
} }
".lbl_button" :
".lbl_button": { { left: 20,
left: 20,
right: 20, right: 20,
color: "#fff" color: "#fff"
} }
".headline" :
".headline": { { color: "#aaa",
color: "#aaa",
left: 16, left: 16,
height: 48, height: 48,
font: { font: {
fontWeight: "bold" fontWeight: "bold"
} }
} }
".grid" :
".grid": { { left: 2,
left: 2,
right: 2, right: 2,
layout: "horizontal", layout: "horizontal",
height: Ti.UI.SIZE height: Ti.UI.SIZE
} }
".card [platform=tablet]" :
".card [platform=tablet]": { { width: "33%",
width: "33%",
height: 150, height: 150,
bottom: 2 bottom: 2
} }
".card" :
".card": { { width: "50%",
width: "50%",
height: 150, height: 150,
bottom: 2 bottom: 2
} }
".padding" :
".padding": { { right: 2,
right: 2,
left: 0, left: 0,
top: 0, top: 0,
bottom: 0, bottom: 0,
backgroundImage: "/images/essen.jpg" backgroundImage: "/images/essen.jpg"
} }
".card_overlay": { ".card_overlay" :
bottom: 0, { bottom: 0,
left: 0, left: 0,
right: 0, right: 0,
height: 48 height: 48
} }
".card_overlay_bg" :
".card_overlay_bg": { { left: 0,
left: 0,
right: 0, right: 0,
bottom: 0, bottom: 0,
top: 0, top: 0,
backgroundColor: "#000", backgroundColor: "#000",
opacity: 0.3 opacity: 0.3
} }
".card_lbl" :
".card_lbl": { { color: "#fff",
color: "#fff",
left: 16, left: 16,
font: { font: {
fontSize: 16 fontSize: 16
} }
} }

View File

@ -1,12 +1,12 @@
".container": { ".container" :
backgroundImage: 'images/bgbg-builder.png', { backgroundImage: 'images/bgbg-builder.png',
width: 1024, width: 1024,
height: 752, height: 752,
top: 0, top: 0,
left: 0 left: 0
}, },
"#blackArrow": { "#blackArrow" :
touchEnabled: false, { touchEnabled: false,
backgroundImage: 'images/arrow-builder.png', backgroundImage: 'images/arrow-builder.png',
width: 15, width: 15,
height: 10, height: 10,