-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclock.kv
More file actions
55 lines (37 loc) · 1.13 KB
/
Copy pathclock.kv
File metadata and controls
55 lines (37 loc) · 1.13 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
<MyButton@MDRaisedButton>
font_name: 'Roboto'
<MyLabel@MDLabel>
halign: "center"
font_name: 'Roboto'
markup: True
font_size: "60sp"
<MainScreen>
time_label: time_label
md_bg_color: app.theme_cls.bg_normal
MDBoxLayout:
orientation: "vertical"
pos_hint: {"center_x": .5}
MyLabel:
id: time_label
text: "[b] 00 [/b]: 00 : 00 %p"
MDBoxLayout:
orientation: "horizontal"
spacing: dp(20)
pos_hint: {"center_x": .5}
height: dp(90)
# TODO: Adjust the paddings to be relative to window size
padding: dp(150),dp(0)
size_hint_y: None
adaptive_height: True
MyButton:
id: start_stop_btn
text: "Start"
on_release: root.start_stop_chrono()
MyButton:
id: reset_btn
text: "Reset"
md_bg_color: 1,0,0,.8
on_release: root.reset_chrono()
MyLabel:
id: chrono_label
text: "[b] 00 [/b]: 00.[size=30sp]00[/size]"