-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.kv
More file actions
106 lines (103 loc) · 3.85 KB
/
main.kv
File metadata and controls
106 lines (103 loc) · 3.85 KB
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
102
103
104
105
106
#:import rgba kivy.utils.get_color_from_hex
#:import md_icons kivymd.icon_definitions.md_icons
MDScreen:
ScreenManager:
id : screen_manager
MDScreen:
name: "main"
MDFloatLayout:
orientation: "vertical"
canvas.before:
Color:
rgba: rgba("#495057") # most
Rectangle:
source: 'images/body_image.jpg'
size: root.width, root.height
pos: self.pos
MDLabel:
text: "Crossfit Workout Selector"
markup: True
halign: "center"
pos_hint: {'center_x': .5, 'center_y': .7}
font_size: 70
theme_text_color: "Custom"
text_color: rgba("#ADB5BD")
MDRoundFlatButton:
text: "Warm Up"
pos_hint: {"x": .2, "y":.4}
size_hint: .6, .1
font_size: 50
text_color: "black"
md_bg_color: "#27f1f5cc"
on_release: app.warm_up()
MDRoundFlatButton:
text: "Main Workout"
pos_hint: {"x": .2, "y":.2}
size_hint: .6, .1
font_size: 50
text_color: "black"
md_bg_color: "red"
on_release: app.main_workout()
MDScreen:
name: "warmup"
MDFloatLayout:
orientation: "vertical"
canvas.before:
Color:
rgba: rgba("#495057") # most
Rectangle:
source: 'images/body_image.jpg'
size: root.width, root.height
pos: self.pos
Label:
id: textField2
pos_hint: {'center_x': .5, 'center_y': .7}
theme_text_color: "Custom"
font_size: 50
MDRoundFlatButton:
text: "Home"
font_size: 50
text_color: "black"
pos_hint: {"x": 0.1, "y":.15}
size_hint: .2, .1
md_bg_color: rgba("#2730f5cc")
on_press: app.home_screen()
MDRoundFlatButton:
text: "Get Workout"
font_size: 50
text_color: "black"
pos_hint: {"x": 0.4, "y":.15}
size_hint: .5, .1
md_bg_color: "#27f1f5cc"
on_press: app.reset_warmup()
MDScreen:
name: "mainWorkout"
MDFloatLayout:
canvas.before:
Color:
rgba: rgba("#495057") # most
Rectangle:
source: 'images/body_image.jpg'
size: root.width, root.height
pos: self.pos
Label:
id: textField1
pos_hint: {'center_x': .5, 'center_y': .7}
theme_text_color: "Custom"
font_size: 50
MDRoundFlatButton:
text: "Home"
font_size: 50
text_color: "black"
pos_hint: {"x": 0.1, "y":.15}
size_hint: .2, .1
md_bg_color: rgba("#2730f5cc")
on_press: app.home_screen()
MDRoundFlatButton:
text: "Get Workout"
font_size: 50
text_color: "black"
pos_hint: {"x": 0.4, "y":.15}
size_hint: .5, .1
md_bg_color: "#27f1f5cc"
on_press: app.reset_main()