-
Notifications
You must be signed in to change notification settings - Fork 0
/
selection.kv
65 lines (62 loc) · 2.39 KB
/
selection.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
#importing kv files necessary for screen
#: include registerdata.kv
#: include registerdiagnosis.kv
#: include privacypolicy.kv
#: include moreinfo.kv
#: include notenoughinfo.kv
MDScreen:
name: "selection"
#: import rowcountdata tensorflowinit.rowcountdata
rowcountdata : rowcountdata
MDFloatLayout:
radius: [25, 0, 0, 0]
md_bg_color: 1,1,1,1
MDToolbar:
color_mode: 'primary'
title: "ADHD APP"
MDLabel:
text: 'How would you like to join our community?'
halign: 'center'
pos_hint: {'center_x':0.5, 'center_y':0.7}
font_name: 'Poppins-Regular.ttf'
MDRaisedButton:
pos_hint: {'center_x':0.39, 'center_y':0.5}
text: 'Data'
theme_text_color: "Custom"
size_hint: .195, .12
font_name: 'Poppins-Regular.ttf'
on_press: self.background_color = (0, 0, 0, 0)
on_release: app.root.current = "registerdata"
MDRaisedButton:
id: diagbtn
pos_hint: {'center_x':0.61, 'center_y':0.5}
text: 'Diagnosis'
theme_text_color: "Custom"
size_hint: .195, .12
font_name: 'Poppins-Regular.ttf'
on_press:
if rowcountdata > 100: app.root.current = "registerdiagnosis"
else: app.root.current = "notenoughinfo"
MDRaisedButton:
text: 'what is ADHD?'
theme_text_color: "Custom"
size_hint: .15, .07
font_name: 'Poppins-Regular.ttf'
font_style: 'Subtitle2'
pos_hint: {'center_x':0.5, 'center_y':0.35}
on_press: self.background_color = (0, 0, 0, 0)
on_release: app.root.current = "moreinfo"
MDLabel:
text: 'Reminder: by clicking Data or Diagnosis you are agreeing to our privacy policy'
halign: 'center'
pos_hint: {'center_x':0.5, 'center_y':0.2}
font_name: 'Poppins-Regular.ttf'
MDRaisedButton:
text: 'Privacy Policy'
background_color: 0, 0, 0, .3
size_hint: .15, .06
font_name: 'Poppins-Regular.ttf'
font_style: 'Subtitle2'
pos_hint: {'center_x':0.5, 'center_y':0.14}
on_press: self.background_color = (1, 0.2, 0.4, 1)
on_release: app.root.current = "privacypolicy"