forked from The-Semicolons/Baymax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainscreen.kv
128 lines (120 loc) · 4.4 KB
/
mainscreen.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
<mainScreenLayout>:
canvas.before:
Color:
rgba: 0.753, 0.145, 0.16, 1
Rectangle:
pos: self.pos
size: self.size
BoxLayout:
orientation: "vertical"
ActionBar:
pos_hint: {'top':1}
ActionView:
use_separator: True
ActionPrevious:
title: ' BAYMAX'
with_previous: False
app_icon: './assets/icons/baymaxIcon.png'
ActionOverflow:
ActionButton:
icon: 'atlas://data/images/defaulttheme/audio-volume-high'
ActionButton:
text: 'Help'
on_press: root.onHelpPress()
ActionButton:
text: 'About'
Label:
size_hint: (1, 0.08)
BoxLayout:
orientation: "horizontal"
Label:
size_hint: (0.2, 1)
text: " "
BoxLayout:
canvas.before:
Color:
rgba: 1, 1, 1, 0.3
Rectangle:
pos: self.pos
size: self.size
size_hint: (0.6, 1)
orientation: 'vertical'
padding: 10, 10
row_default_height: '48dp'
row_force_default: True
spacing: 10, 10
ScrollView:
id: ChatAreaScrollView
size: self.size
do_scroll_y: True
do_scroll_x: False
scroll_y: 0
GridLayout:
size_hint_y: None
height: self.minimum_height
cols: 2
GridLayout:
id: ChatArea1
size_hint_y: None
height: self.minimum_height
cols: 1
row_default_height: '30dp'
row_force_default: True
spacing: 0, 0
padding: 0, 0
GridLayout:
id: ChatArea2
size_hint_y: None
height: self.minimum_height
cols: 1
row_default_height: '30dp'
row_force_default: True
spacing: 0, 0
padding: 0, 0
BoxLayout:
canvas.before:
Color:
rgba: 0.196, 0.235, 0.27, 1
Rectangle:
pos: self.pos
size: self.size
orientation: "horizontal"
padding: 7.5
size_hint: (1, 0.09)
TextInput:
id: message_box
size_hint: (0.9, None)
pos_hint: {"center_x": True}
height: self.minimum_height
hint_text: "Enter text here..."
multiline: False
font_size: 20
padding: 9
Button:
size_hint: (0.2, 1)
text: "Send"
on_press: root.onSendButtonPress()
Button:
size_hint: (0.2, 1)
text: "Speak"
on_press: root.onSpeakButtonPress()
BoxLayout:
size_hint: (0.2, 1)
orientation: "vertical"
Label:
size_hint: (1, 0.8)
text: " "
Button:
size_hint: (1, 0.1)
text: "Print Prescription"
on_press: root.printPrescription()
Button:
size_hint: (1, 0.1)
text: "Analyse Reports"
on_press: root.onAnalyseButtonPress()
Button:
size_hint: (1, 0.1)
text: "Start/Restart Medbot"
on_press: root.start()
Label:
size_hint: (1, 0.08)