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
|
# File 'lib/playa/views/help_view.rb', line 5
def show
trigger(:_clear_)
render do
view 'help' do
line do
colour foreground: '#aadd00'
stream do
align centre
width use('help').width
text 'Wow, you found the really useful help page!'
end
end
line ''
line do
colour foreground: '#ffffff'
stream do
align centre
width use('help').width
text 'Whilst a track is playing you can press:'
end
end
line ''
line do
foreground('#ff0000') { text " \u{25C0}" }
foreground('#ffffff') { text ' to rewind 5 seconds' }
end
line do
foreground('#ff0000') { text " \u{25B6}" }
foreground('#ffffff') { text ' to go forward 5 seconds' }
end
line ''
line ''
line do
colour foreground: '#ffff00'
stream do
align centre
width use('help').width
text 'Press `p` to return to Playa.'
end
end
end
end
end
|