-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrecorder.kv
54 lines (44 loc) · 1.45 KB
/
recorder.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
#:import C kivy.utils.get_color_from_hex
<GridLayout>:
cols: 2
spacing: 10
row_default_height:
(0.5 * (self.width - self.spacing[0]) -
self.padding[0])
row_force_default: True
<Button>:
background_normal: 'button_normal.png'
background_down: 'button_down.png'
font_size: 24
halign: 'center'
markup: True
GridLayout:
padding: 15
Button:
id: begin_end_recording
background_color: C('#3498db')
text:
('[font=Modern Pictograms][size=120]'
'e[/size][/font]\nBegin recording')
on_press: app.begin_end_recording()
GridLayout:
Button:
background_color: C('#2ecc71')
text: '[font=Modern Pictograms][size=80]M[/size][/font]'
Button:
background_color: C('#1abc9c')
text: '[font=Modern Pictograms][size=80]O[/size][/font]'
Button:
background_color: C('#27ae60')
text: '[font=Modern Pictograms][size=80]Q[/size][/font]'
Button:
background_color: C('#16a085')
text: '[font=Modern Pictograms][size=80]j[/size][/font]'
Button:
background_color: C('#95a5a6')
text: '[font=Modern Pictograms][size=120]P[/size][/font]\nPlayback'
on_press: app.begin_playback()
Button:
background_color: C('#e74c3c')
text: '[font=Modern Pictograms][size=120]X[/size][/font]\nDelete'
on_press: app.delete_file()