-
Notifications
You must be signed in to change notification settings - Fork 35
/
index.tss
60 lines (43 loc) · 1.23 KB
/
index.tss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
'#searchMenu': {
// Use an standard Android drawable
icon: Ti.Android.R.drawable.ic_menu_search,
// Always show the menu item in the ActionBar
// The ActionView can (and will be by default) collapsed (hidden) until you tap the icon
showAsAction: Ti.Android.SHOW_AS_ACTION_ALWAYS | Ti.Android.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW
}
'.canvas': {
// Use vertical layout so the Map comes below the SearchBar, no matter its height
layout: 'vertical'
}
'SearchBar': {
// Use the color set in config.json
barColor: Alloy.CFG.brandPrimary
}
'#map': {
// Allow the user to rotate the map on iOS7+
rotatesEnabled: true,
// Show the user location
userLocation: true
}
'.typeBtn': {
width: 90,
// Same height as Android userLocation control
height: 38,
// Position it top left, since that's the only free corner on both iOS and Android
top: 11,
left: 11,
// FIXME: https://jira.appcelerator.org/browse/MOD-2132
zIndex: 1,
backgroundColor: '#CFFF',
borderColor: '#EEE',
borderWidth: 1,
borderRadius: 2
}
// Like in views, we can also use conditional statements in styles
'.typeBtn[platform=android]': {
// Make it same color as the Android zoom controls
color: '#666'
}
'.typeBtn[platform=ios]': {
tintColor: Alloy.CFG.brandPrimary
}