-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui.kv
94 lines (89 loc) · 3.4 KB
/
gui.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#:kivy 2.0.0
#:import HomeScreen screens.home
#:import SettingScreen screens.settings
#:import MusicMappingScreen screens.mapping
#:import HelpScreen screens.help
#:import Loader widgets.loader
#:import NavButton widgets.navButton
#:import KivyCamera widgets.kivycamera
#:import InstrumentSelector widgets.selector
#:import theme utils.theme
Root:
orientation:"vertical"
#Side Navigation bar + Content Screen
BoxLayout:
MDCard:
orientation:"vertical"
size_hint_x:0
width:"50dp"
md_bg_color:theme.get_color(app.theme_cls.theme_style,"TabColor")
#canvas:
# Color:
# rgba:theme.get_color(app.theme_cls.theme_style,"TabColor") #0.15,0.15,0.15,1
# Rectangle:
# pos:self.pos
# size:self.size
ScrollView:
BoxLayout:
spacing:"12dp"
orientation:"vertical"
NavButton:
icon:"home-outline"
tooltip_text:"Home"
group:"x"
active:True
on_release:
root.ids.screenmanager.current = 'Home' #if self.active else None
NavButton:
icon:"play-circle-outline"
tooltip_text:"Map Music"
group:"x"
on_release:
print("Hello");
root.ids.screenmanager.current = 'Map Music' #if self.active else None
NavButton:
icon:"cogs"
tooltip_text:"Settings"
group:"x"
on_release:
root.ids.screenmanager.current = 'setting' #if self.active else None
NavButton:
icon:"help-circle-outline"
tooltip_text:"Help"
group:"x"
on_release:
root.ids.screenmanager.current = 'help' #if self.active else None
#NavButton:
# icon:"tools"
# tooltip_text:"Expert Mode"
# group:"x"
# on_release:
# root.ids.screenmanager.current = 'Expert Mode' #if self.active else None
BoxLayout:
#Main WorkSpace
BoxLayout:
ScreenManager:
id:screenmanager
HomeScreen:
name:"Home"
MusicMappingScreen:
name:"Map Music"
SettingScreen:
name:"setting"
HelpScreen:
name:"help"
#bottom bar
BoxLayout:
size_hint_y:None
height:"25dp"
canvas:
Color:
rgba:theme.get_color(app.theme_cls.theme_style,"BottomStatusColor")#0.5,0.1,1,1
Rectangle:
pos:self.pos
size:self.size
MDLabel:
halign:"center"
text:root.ids.screenmanager.current
#theme_text_color:"Primary"
color:theme.get_color(app.theme_cls.theme_style,"PrimaryTextColor")