-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChats.kv
101 lines (101 loc) · 3.38 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
<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.size
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: (1, 1, 1, 1)
RoundedRectangle:
size: self.width, self.height
pos: self.pos
radius: [23, 23, 23, 0]
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: "Poppins"
font_size: "25sp"
theme_text_color: "Custom"
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
pso_hint: {'top': 10}
cols: 1
spacing: 5
MDFloatLayout:
md_bg_color: 245/255, 245/255, 245/255, 1
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)
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
cursor_color: 1, 170/255, 23/255, 1
foreground_color: 1, 170/255, 23/255, 1
background_color: 0, 0, 0, 0
padding: 15
font_name: "Poppins"
MDIconButton:
icon: app.ICON['radio']
icon_size: "30sp"
pos_hint: {"center_x": .76, "center_y": .5}
user_font_size: "18sp"
theme_text_color: "Custom"
text_color: 1, 1, 1, 1
md_bg_color: 1, 170/255, 23/255, 1
on_press: app.callback()
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: 1, 170/255, 23/255, 1
on_release: app.send()