-
Notifications
You must be signed in to change notification settings - Fork 1
/
Chats.kv
178 lines (167 loc) · 5.7 KB
/
Chats.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
<Command>
size_hint_y: None
pos_hint: {"right": .98}
height: self.texture_size[1]
padding: 12, 10
theme_text_color: "Custom"
text_color: 1, 1, 1, 1
canvas.before:
Color:
rgb: (1, 170/255, 23/255, 1)
RoundedRectangle:
size: self.width, self.height
pos: self.pos
radius: [23, 23, 0, 23]
<Response>
size_hint_y: None
pos_hint: {"x": .02}
height: self.texture_size[1]
padding: 12, 10
canvas.before:
Color:
rgb: (0/255,191/255,176/255,1)
RoundedRectangle:
size: self.width, self.height
pos: self.pos
radius: [23, 23, 23, 0]
<ResponseImage>
size_hint_x: .7
size_hint_y: None
height: 200
allow_stretch: True
pos_hint: {"x": .02}
canvas.before:
Color:
rgb: (1, 1, 1, 1)
RoundedRectangle:
size: self.width, self.height
pos: self.pos
radius: [23, 23, 23, 0]
# MDScreen2:
# # bot_name: bot_name
# # text_input: text_input
# # chat_list: chat_list
# # name: "chats"
# text: "Jordan Bot"
# MDFloatLayout:
# MDFloatLayout:
# md_bg_color: 1, 1, 1, 1
# size_hint_y: .11
# pos_hint: {"center_y": .95}
# MDLabel:
# id: bot_name
# text: "Jordan Bot"
# pos_hint: {"center_y": .5}
# halign: "center"
# font_name: "BPoppins"
# font_size: "25sp"
# theme_text_color: "Custom"
# text_color: 1, 1, 1, 1
MDScreen:
bot_name: bot_name
text_input: text_input
chat_list: chat_list
name: "chats"
MDFloatLayout:
MDFloatLayout:
md_bg_color: 245/255, 245/255, 245/255, 1
size_hint_y: .11
pos_hint: {"center_y": .95}
MDLabel:
id: bot_name
text: ""
pos_hint: {"center_y": .5}
halign: "center"
font_name: "BPoppins"
font_size: "25sp"
theme_text_color: "Custom"
text_color: 245/255, 245/255, 245/255, 1
MDFloatLayout:
md_bg_color: 245/255, 245/255, 245/255, 1
# md_bg_color: 1, 1, 1, 1
size_hint_y: .11
pos_hint: {"center_y": .95}
MDLabel:
id: bot_name
text: ""
pos_hint: {"center_y": 1}
halign: "center"
font_name: "BPoppins"
font_size: "15sp"
theme_text_color: "Custom"
# text_color: 245/255, 245/255, 245/255, 1
text_color: 1, 1, 1, 1
MDLabel:
text:"Say Hey/Hello to Jordan"
halign: "center"
font_name: "BPoppins"
pos_hint:{"center_y": .5}
font_size:"20sp"
text_color: 53/255, 56/255, 60/255, 1
# subText:
# text:"Hello. I Am Your Personal Assistant JordanBot. Let's start this convo with hey/Hello"
# halign: "left"
# font_name: "BPoppins"
# pos_hint:{"center_y": .5}
# font_size:"15sp"
# text_color: 53/255, 56/255, 60/255, 1
ScrollView:
size_hint_y: .77
pos_hint: {"x": 0, "y": .116}
do_scroll_x: False
do_scroll_y: True
BoxLayout:
id: chat_list
orientation: 'vertical'
size: (root.width, root.height)
height: self.minimum_height
size_hint: None, None
pos_hint: {'top': 10}
cols: 1
spacing: 5
MDFloatLayout:
md_bg_color: 245/255, 245/255, 245/255, 1 #Bottom bar
size_hint_y: .11
MDFloatLayout:
size_hint: .8, .75
pos_hint: {"center_x": .43, "center_y": .5}
canvas:
Color:
rgb: (238/255, 238/255, 238/255, 1) #Bottom bar inside
RoundedRectangle:
size: self.size
pos: self.pos
radius: [23, 23, 23, 23]
TextInput:
id: text_input
hint_text: "Type your message..."
size_hint: 1, None
pos_hint: {"center_x": .5, "center_y": .5}
font_size: "18sp"
height: self.minimum_height
multiline: False
cursor_color: 0/255,123/255,184/255,1 #cursor_color
cursor_width: "2sp"
foreground_color: 1, 170/255, 23/255, 1
background_color: 0,0,0,0
padding: 15
font_name: "Poppins"
MDIconButton:
icon: "send"
pos_hint: {"center_x": .91, "center_y": .5}
user_font_size: "18sp"
theme_text_color: "Custom"
text_color: 1, 1, 1, 1
md_bg_color: 0/255,123/255,184/255,1 #arrow bar
on_release: app.send()
# MDFloatLayout:
# md_bg_color:1, 1, 1, 1
# Image:
# source:"Location.png"
# size_hint: .1, .1
# pos_hint:{"center_x":.5,"center_y":.95}
# MDLabel:
# text:"Delhi,IN"
# pos_hint:{"center_x":.5,"center_y":.89}
# halign: "center"
# font_size:"20sp"