forked from tech-boost-nakanishi/python_kivy_wordle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.kv
More file actions
74 lines (63 loc) · 1.49 KB
/
home.kv
File metadata and controls
74 lines (63 loc) · 1.49 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
# Don't use MDLabel here
<TitleLabel@Label>:
font_size: self.width / 2
size_hint: (self.parent.width / 6, None)
size: (self.parent.width / 7, self.parent.width / 7)
angle: 0
canvas.before:
Color:
rgba: app.theme_cls.primary_color
Rectangle:
pos: self.pos
size: self.size
PushMatrix
Rotate:
angle: root.angle
axis: 0, 0, 1
origin: self.center
canvas.after:
PopMatrix
<HomeScreen>:
MDBoxLayout:
orientation: 'vertical'
size: root.size
MDBoxLayout:
orientation: 'horizontal'
size_hint_x: .96
pos_hint: {'center_x': .5}
spacing: 5
id: thetitle
TitleLabel:
text: 'W'
TitleLabel:
text: 'O'
TitleLabel:
text: 'R'
TitleLabel:
text: 'D'
TitleLabel:
text: 'L'
TitleLabel:
text: 'E'
MDFloatLayout:
MDRaisedButton:
text: 'Start'
font_size: self.width / 6
size_hint: (.6, .35)
pos_hint: {'center_x':0.5, 'y': 0.2}
md_bg_color: app.theme_cls.primary_color
text_color: app.theme_cls.opposite_text_color
on_release:
root.manager.current = 'game'
app.root.ids.bottom_nav.switch_tab('game')
MDFloatLayout:
MDRaisedButton:
text: 'How to play'
font_size: self.width / 6
size_hint: (.6, .35)
pos_hint: {'center_x':0.5, 'y': 0.7}
md_bg_color: app.theme_cls.primary_color
text_color: app.theme_cls.opposite_text_color
on_release:
root.manager.current = 'howto'
app.root.ids.bottom_nav.switch_tab('howto')