-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEverestApp.kv
102 lines (90 loc) · 2.9 KB
/
EverestApp.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
#:include connected.kv
#:import hex kivy.utils.get_color_from_hex
<Login>:
BoxLayout:
id: login_layout
orientation: 'vertical'
spacing: 10
# padding_left, padding_top, padding_right, padding_bottom
padding: [10,15,10,10]
canvas.before:
Color:
rgba: rgba("#0e1574ff")
Triangle:
points: [0, self.size[1],self.size[0],self.size[1],0,self.size[1]-(.4 *self.size[1])]
Color:
rgba: rgba("#0e1574c8")
Triangle:
points: [0, self.size[1],self.size[0],self.size[1],self.size[0],self.size[1]-(.4 *self.size[1])]
Label:
text: 'EVEREST SPICES LTD. (INDIA)'
font_name: 'DelaGothic'
font_size: 20
color: (1,1,1)
text_size: self.width, None
size_hint_y: None
height: self.texture_size[1]
BoxLayout:
orientation: 'vertical'
spacing: 10
size_hint_y:-30
Label:
text: 'username'
font_size: '14sp'
font_name: 'VarelaRound'
halign: 'left'
text_size: root.width-14, 14
color: rgba("#0e1574ff")
size_hint_y:None
size:
self.texture_size
TextInput:
id: login
multiline:False
font_size: '20sp'
font_name: 'Mukta-SemiBold'
background_color: 1,1,1,0.5
size_hint_y:None
size:
self.texture_size
size: dp(275),dp(40)
Label:
text: 'password'
font_name: 'VarelaRound'
halign: 'left'
font_size: '14sp'
text_size: root.width-14, 14
color: rgba("#0e1574ff")
size_hint_y:None
size:
self.texture_size
TextInput:
id: password
multiline:False
password:True
font_size: '20sp'
font_name: 'Mukta-SemiBold'
background_color: 1,1,1,0.5
size_hint_y:None
size:
self.texture_size
size: dp(250),dp(40)
Label:
id: loginerror
font_name: 'VarelaRound'
halign: 'left'
font_size: '14sp'
text_size: root.width-14, 14
color: rgba("#ff0000")
size_hint_y:None
size:
self.texture_size
Widget:
MDRaisedButton:
halign:'Center'
text: 'Login'
font_size: '24sp'
size_hint_x: 1
width: dp(100)
font_name: 'VarelaRound'
on_press: root.do_login(login.text, password.text)