-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththedetail-copy.kv
288 lines (255 loc) · 5.87 KB
/
thedetail-copy.kv
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
#:import sla kivy.adapters.simplelistadapter
#:import button kivy.uix.button
#:import label kivy.uix.label
#:set padding_x_label '-20sp'
#:set padding_x_data -40
#:set text_size_label '28sp'
#:set text_size_data '22sp'
#:set theme_height 200
<TheDetail@BoxLayout>:
detail_nom: detail_nom_id
detail_temp: detail_temp_id
detail_duree: detail_duree_id
detail_dose: detail_dose_id
detail_description: detail_description_id
nomcategorieLabel: nomcategorieLabel_id
enteteLayout: enteteLayout_id
orientation: 'vertical'
valign: 'top'
#--size_hint_y: None
canvas.before:
Color:
# 247 244 240
rgba: 0.96862, 0.95686, 0.94117, 1
Rectangle:
pos: self.pos
size: self.size
# Entete
BoxLayout:
height: sp(250)
size_hint_y: None
id: enteteLayout_id
orientation: 'vertical'
valign: 'top'
canvas.before:
Color:
# 247 244 240
#rgba: 0.96862, 0.95686, 0.94117, 1
rgba: 1,0,0,1
Rectangle:
pos: self.pos
size: self.size
# Top Title
Label:
canvas.before:
Color:
rgba: 1,1,1, 1
Rectangle:
pos: self.pos
size: self.size
id: nomcategorieLabel_id
text: "TeaTime > XXX"
font_size: '16sp'
size_hint_y: None
height: '25sp'
halign: 'left'
text_size: self.size
padding: '-10sp', 0
font_name: "font/Ubuntu-L.ttf"
color: (0, 0, 0, 0.90)
# Main title
Label:
canvas.before:
Color:
rgba: 1,1,1, 1
Rectangle:
pos: self.pos
size: self.size
text: "XXX"
id: detail_nom_id
font_size: '32sp'
font_name: "font/Ubuntu-L.ttf"
color: (0, 0, 0, 0.90)
size_hint_y: None
height: '60sp'
# Liner
Label:
canvas.before:
Color:
rgba: 1,1,1, 1
Rectangle:
source: "images/liner.png"
pos: self.pos
size: self.size
text: " "
size_hint_y: None
height: '4sp'
# Small Padding
Label:
canvas.before:
Color:
rgba: 0.96862, 0.95686, 0.94117, 1
Rectangle:
pos: self.pos
size: self.size
text: " "
size_hint_y: None
height: '6sp'
#ScrollView:
# size_hint: (None, None)
BoxLayout:
orientation: 'vertical'
spacing: 10
#size_hint_y: None
BoxLayout:
orientation: 'vertical'
spacing: 0, '20sp'
# Temperature
BoxLayout:
orientation: 'horizontal'
size_hint_y: None
height: sp(theme_height)
BoxLayout:
orientation: 'vertical'
Label:
text: "Température de l'eau :"
halign: 'left'
valign: 'bottom'
text_size: self.size
font_size: text_size_label
font_name: "font/Ubuntu-M.ttf"
color: (0, 0, 0, 0.90)
padding_x: padding_x_label
Label:
id: detail_temp_id
halign: 'left'
valign: 'top'
text_size: self.size
text: "XXXXXXXXXXXXXXX"
font_size: text_size_data
font_name: "font/Ubuntu-L.ttf"
color: (0, 0, 0, 0.90)
padding_x: sp(padding_x_data)
Image:
source: "images/bg-temp.png"
size_hint_x: None
width: '80sp'
halign: 'right'
valign: 'bottom'
# Chrono
BoxLayout:
orientation: 'horizontal'
size_hint_y: None
height: sp(theme_height)
BoxLayout:
orientation: 'vertical'
Label:
text: "Durée d'infusion :"
halign: 'left'
valign: 'bottom'
text_size: self.size
font_size: text_size_label
font_name: "font/Ubuntu-M.ttf"
color: (0, 0, 0, 0.90)
padding_x: padding_x_label
Label:
id: detail_duree_id
halign: 'left'
valign: 'top'
text_size: self.size
text: "XXXXXXXXXXXXXXX"
font_size: text_size_data
font_name: "font/Ubuntu-L.ttf"
color: (0, 0, 0, 0.90)
padding_x: sp(padding_x_data)
Image:
source: "images/bg-chrono.png"
size_hint_x: None
width: '80sp'
halign: 'right'
valign: 'bottom'
# Leaf
BoxLayout:
orientation: 'horizontal'
size_hint_y: None
height: sp(theme_height)
BoxLayout:
orientation: 'vertical'
Label:
text: "Dose :"
halign: 'left'
valign: 'bottom'
text_size: self.size
font_size: text_size_label
font_name: "font/Ubuntu-M.ttf"
color: (0, 0, 0, 0.90)
padding_x: padding_x_label
Label:
id: detail_dose_id
halign: 'left'
valign: 'top'
text_size: self.size
text: "XXXXXXXXXXXXXXX"
font_size: text_size_data
font_name: "font/Ubuntu-L.ttf"
color: (0, 0, 0, 0.90)
padding_x: sp(padding_x_data)
Image:
source: "images/bg-leaf.png"
size_hint_x: None
width: '80sp'
halign: 'right'
valign: 'bottom'
# Description
BoxLayout:
orientation: 'horizontal'
size_hint_y: None
height: sp(theme_height)
BoxLayout:
orientation: 'vertical'
Label:
text: "Description :"
halign: 'left'
valign: 'bottom'
text_size: self.size
font_size: text_size_label
font_name: "font/Ubuntu-M.ttf"
color: (0, 0, 0, 0.90)
padding_x: padding_x_label
Label:
id: detail_description_id
halign: 'left'
#valign: 'top'
#text_size: (self.width , self.height)
text_size: (self.width + (2 * padding_x_data) , None)
text: "XXXXXXXXXXXXXXX"
font_size: '18sp'
font_name: "font/Ubuntu-L.ttf"
color: (0, 0, 0, 0.90)
# Empty label to move previous widgets to the top of the screen
Label:
text: " "
AnchorLayout:
canvas.before:
Color:
rgba: 0,0,0, 0.1
Rectangle:
pos: self.pos
size: self.size
anchor_x: 'center'
anchor_y: 'bottom'
size_hint_y: None
height: '60sp'
Button:
text: "Retour"
color: (0, 0, 0, 0.75)
font_size: '12sp'
on_press: root.retour()
size_hint_x: None
size_hint_y: None
height: '58sp'
width: '44sp'
padding_y: '18sp'
background_normal: 'images/retour-off.png'
background_down: 'images/retour-on.png'
border: 0,0,0,0