-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbobame.kv
More file actions
175 lines (143 loc) · 4.63 KB
/
Copy pathbobame.kv
File metadata and controls
175 lines (143 loc) · 4.63 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
#:import Clipboard kivy.core.clipboard.Clipboard
WindowManager:
OpenScreen:
MainScreen:
<OpenScreen>:
name: "OpenScreen"
user_location:user_location
GridLayout:
cols:1
GridLayout:
cols:1
GridLayout:
cols:1
Label:
font_name: './fonts/SR-BOLD.ttf'
font_size: 55
size_hint_y: None
text: "BobaMe!"
Label:
font_name: './fonts/SR.ttf'
size_hint_y: 500
font_size: 30
text: " Find New Boba Shops in your area by\nentering your zip code or your state and city!"
TextInput:
id: user_location
font_name: './fonts/SR.ttf'
multiline: False
#size_hint: (.2, None)
size_hint_y: None
height: 100
width: 10
font_size: self.height - 40
Button:
size_hint: 0.5,0.12
background_color:(0 , 0, 0 ,0)
background_normal:''
font_size: 42
font_name: './fonts/SR.ttf'
back_color:(.7 , .8 , 1.0 , 1.0)
canvas.before:
Color:
rgba: self.back_color
Rectangle:
size: self.size
pos:self.pos
text:"Search"
on_press: app.root.current = 'InputScreen'
on_press:
root.manager.transition.direction = "left"
<MainScreen>:
name: "InputScreen"
bobashop: bobashop
bobalocation: bobalocation
bobaphone: bobaphone
bobareview: bobareview
bobaimage: bobaimage
AsyncImage:
nocache: True
id:bobaimage
source: (str(root.bobaimage))
opacity: 0.2
GridLayout:
cols:1
Button:
size_hint: 0.5,0.12
background_color:(0 , 0, 0 ,0)
background_normal:''
font_size: 35
font_name: './fonts/SR.ttf'
back_color:(.7 , .8 , 1.0 , 1.0)
canvas.before:
Color:
rgba: self.back_color
Rectangle:
size: self.size
pos:self.pos
font_name: './fonts/SR.ttf'
text: "Back to HomeScreen"
on_press:
app.root.current = 'OpenScreen'
size_hint: 0.5,0.12
on_press:
root.manager.transition.direction = "right"
GridLayout:
cols:2
GridLayout:
cols:1
Label:
font_name: './fonts/SR.ttf'
font_size: 30
id: bobashop
text: " "
Label:
font_name: './fonts/SR.ttf'
font_size: 30
id: bobalocation
text: " "
Label:
font_name: './fonts/SR.ttf'
font_size: 30
id: bobaphone
text: " "
Label:
font_name: './fonts/SR.ttf'
font_size: 30
id: bobareview
text: " "
GridLayout:
cols:2
size_hint: 0.5,0.12
Button:
text: "Take Me There!"
size_hint: 0.5,0.22
#background_color:(0 , 0, 0 ,0)
background_normal:''
font_size: 30
color: (0 , 0 , 0 , 1)
font_name: './fonts/SR.ttf'
back_color:(0 , 0 ,.0 , 0)
canvas.before:
Color:
rgba: self.back_color
Rectangle:
size: self.size
pos:self.pos
on_press: root.directions()
Button:
size_hint: 0.5,0.12
background_color:(0 , 0, 0 ,0)
background_normal:''
font_size: 30
font_name: './fonts/SR.ttf'
back_color:(.7 , .8 , 1.0 , 1.0)
color: (0 , 0 , 0 , 1)
canvas.before:
Color:
rgba: self.back_color
Rectangle:
size: self.size
pos:self.pos
text: "More"
size_hint: 0.5, 0.22
on_release: root.addSearch()