/
login.kv
89 lines (77 loc) · 2.55 KB
/
login.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
#:include connected.kv
<Login>:
FloatLayout:
canvas:
Color:
rgb: 1, 1, 1
Rectangle:
size: self.size
BoxLayout:
id: login_layout
orientation: 'vertical'
BoxLayout:
size_hint: (1, 5)
orientation: 'vertical'
Label:
text: 'Log in'
font_size: 30
font_name: 'media/Fonts/Khula-ExtraBold.ttf'
halign: 'center'
size_hint: (.9, 1)
pos_hint: {'x':0.05, 'y':1}
color: (0, 0, 0, .8)
Label:
text: 'Username'
font_size: 18
font_name: 'media/Fonts/Khula-SemiBold.ttf'
halign: 'center'
size_hint: (.9, 1)
pos_hint: {'x':0.05, 'y':1}
color: (0, 0, 0, .8)
TextInput:
id: login
multiline:False
halign: 'center'
font_size: 28
background_color: (0, 0, 0, 0.1)
size_hint: (.9, 1)
pos_hint: {'x':0.05, 'y':1}
font_name: 'media/Fonts/Khula-Light.ttf'
Label:
text: 'Password'
halign: 'center'
font_size: 18
font_name: 'media/Fonts/Khula-SemiBold.ttf'
size_hint: (.9, 1)
pos_hint: {'x':0.05, 'y':1}
color: (0, 0, 0, .8)
TextInput:
id: password
halign: 'center'
multiline:False
background_color: (0, 0, 0, 0.1)
password:True
font_size: 28
size_hint: (.9, 1)
font_name: 'media/Fonts/Khula-Light.ttf'
pos_hint: {'x':0.05, 'y':1}
password: True
AnchorLayout:
size_hint: (.5, .5)
Button:
text: 'Get me in!'
font_size: 24
background_color: (2.7, 0.0, 1.0, 1.0)
size_hint: (.9, 1)
pos_hint: {'x':0.05, 'y':2}
font_name: 'media/Fonts/Khula-Bold.ttf'
on_press: root.do_login(login.text, password.text)
Button:
text: 'Go back'
font_size: 20
color: (0, 0, 0, 1)
background_color: (1.0, 1.0, 15.0, 0)
size_hint: (.9, 1)
pos_hint: {'x':0.05, 'y':1}
font_name: 'media/Fonts/Khula-Bold.ttf'
on_press: root.regresar()