-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.kv
81 lines (81 loc) · 2.8 KB
/
Main.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
MDScreen:
name: "main"
bot_name: bot_name
MDFloatLayout:
md_bg_color: 1, 1, 1, 1
Image:
source: "images/chatbots.jpeg"
size_hint: .8, .5
pos_hint: {"center_x": .5, "center_y": .8}
MDLabel:
text: "Hello Sir!"
font_name: "polices/Poppins-SemiBold.ttf"
font_size: "35sp"
pos_hint: {"center_x": .5, "center_y": .58}
halign: "center"
theme_text_color: "Custom"
text_color: 53/255, 56/255, 60/255, 1
MDLabel:
text: "Your Digital Assistant to guide you through our Products"
size_hint_x: .9
font_name: "Poppins"
font_size: "18sp"
pos_hint: {"center_x": .5, "center_y": .45}
halign: "center"
theme_text_color: "Custom"
text_color: 53/255, 56/255, 60/255, 1
MDLabel:
text: "Read Me First"
font_name: "Poppins"
font_size: "18sp"
pos_hint: {"center_x": .5, "center_y": .33}
halign: "center"
underline: "True"
theme_text_color: "Custom"
text_color: 1, 170/255, 23/255, 1
MDFloatLayout:
size_hint: .85, .08
pos_hint: {"center_x": .5, "center_y": .22}
canvas:
Color:
rgb: (238/255, 238/255, 238/255, 1)
RoundedRectangle:
size: self.size
pos: self.pos
radius: [22, 22, 22, 22]
TextInput:
id: bot_name
hint_text: "ChatBot Name"
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"
MDFloatLayout:
size_hint: .45, .08
pos_hint: {"center_x": .5, "center_y": .1}
canvas:
Color:
rgb: (1, 170/255, 23/255, 1)
RoundedRectangle:
size: self.size
pos: self.pos
radius: [22, 22, 22, 22]
Button:
text: ""
size_hint: .45, .08
pos_hint: {"center_x": .5, "center_y": .1}
background_color: 0, 0, 0, 0
on_release:
app.bot_name()
MDLabel:
text: "LET'S CHAT"
halign: "center"
pos_hint: {"center_y": .1}
font_name: "polices/Poppins-SemiBold.ttf"
font_size: "18sp"
color: 1, 1, 1, 1