-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmdcalc_welcome.kv
67 lines (67 loc) · 2.42 KB
/
mdcalc_welcome.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
MDScreen:
name: 'Welcome'
md_bg_color: self.theme_cls.backgroundColor
size: root.width, root.height
MDFloatLayout:
FitImage:
source: "assets/calc_logo1.png"
size_hint: .15, .10
pos_hint: {"top": 1, "center_x":.10}
radius: "5dp", "5dp", "5dp", "5dp"
MDLabel:
text: 'ConverterCalc'
font_style: 'Display'
role: 'medium'
bold: True
size_hint_y: None
height: self.texture_size[1]
pos_hint: {'center_x': 0.68, 'top': .99}
MDLabel:
text: "'One stop solution to find all converter specifications!\nAll at once'"
halign: 'center'
theme_text_color: 'Custom'
text_color: rgba(150,150,150,255)
font_style: 'Title'
role: 'medium'
italic: True
size_hint_y: None
height: self.texture_size[1]
pos_hint: {'center_x': 0.5, 'top': .85}
FitImage:
source: "assets/convertercalc_welcome.png"
size_hint: 1, .7
pos_hint: {"center_y": .5, "center_x":.5}
radius: "5dp", "5dp", "5dp", "5dp"
MDButton:
style: 'filled'
theme_bg_color: 'Primary'
radius: [5, 5, 5, 5]
pos_hint: {'center_x': .5, 'center_y': .15}
on_release:
root.manager.transition.direction = 'left'
root.manager.current = 'Login'
MDButtonText:
text: 'LOGIN'
theme_text_color: 'Custom'
text_color: 'ghostwhite'
MDLabel:
text: "Don't have an account?"
theme_text_color: 'Custom'
text_color: rgba(100,100,100,255)
font_style: 'Body'
role: 'medium'
size_hint_y: None
height: self.texture_size[1]
pos_hint: {'center_x': 0.75, 'top': .1}
MDButton:
style: 'text'
pos_hint: {'center_x': .65, 'center_y': .09}
on_release:
root.manager.transition.direction = 'left'
root.manager.current = 'Signup'
MDButtonText:
text: 'SIGNUP'
font_style: 'Body'
role: 'medium'
theme_text_color: 'Custom'
text_color: 'blue'