-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstrumentdisplay.kv
58 lines (48 loc) · 1.19 KB
/
instrumentdisplay.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
55
56
57
58
<Outline@Widget>:
canvas:
Color:
rgba: (1, 0, 0, 0.5)
Line:
rectangle: (*self.pos, *self.size)
<BackGroundColorWidget>:
background: (0, 0, 0, 0)
canvas.before:
Color:
rgba: self.background
Rectangle:
size: self.size
pos: self.pos
<OutlinedFretboard@Fretboard+Outline>:
<ColoredChordDisplay@ChordDisplay+BackGroundColorWidget>:
<InstrumentDisplay>:
id: display
orientation: 'vertical'
rack: rack
InstrumentRack:
id: rack
SlidingChordDisplay:
id: chorddisplay
top: self.top_prop
size_hint_y: None
display: display
BoxLayout:
orientation: 'horizontal'
size_hint_y: None
height: 50
pos: (0, 0)
Button:
text: "Show Piano Roll"
on_press: rack.fold()
Button:
text: "Move Chord Display"
on_press: chorddisplay.slide()
<InstrumentRack>:
size_hint_y: None
height: dp(250)
pos_hint: {'top': 1}
BoxLayout:
orientation: 'vertical'
size_hint_y: None
height: dp(500)
OutlinedFretboard:
OutlinedFretboard: