mirror of
https://github.com/janishutz/midi-micro-bit_sound-converter.git
synced 2025-11-25 05:44:24 +00:00
Finished Version 1.0. Guide for installation will be available soon
This commit is contained in:
22
gui/filechooser.kv
Normal file
22
gui/filechooser.kv
Normal file
@@ -0,0 +1,22 @@
|
||||
FileChooserScreen:
|
||||
name: "ChooseFile"
|
||||
md_bg_color: (0, 0, 0, 1)
|
||||
BoxLayout:
|
||||
size: root.size
|
||||
pos: root.pos
|
||||
orientation: "vertical"
|
||||
FileChooserListView:
|
||||
id: filechooser
|
||||
|
||||
BoxLayout:
|
||||
size_hint_y: None
|
||||
height: 30
|
||||
Button:
|
||||
text: "Cancel"
|
||||
on_release:
|
||||
app.root.current = "Home"
|
||||
root.manager.transition.direction = "right"
|
||||
|
||||
Button:
|
||||
text: "Load"
|
||||
on_release: root.load(filechooser.path, filechooser.selection)
|
||||
20
gui/gui.kv
Normal file
20
gui/gui.kv
Normal file
@@ -0,0 +1,20 @@
|
||||
HomeScreen:
|
||||
name: "Home"
|
||||
md_bg_color: app.theme_cls.accent_color
|
||||
GridLayout:
|
||||
cols:1
|
||||
Label:
|
||||
text: "MIDI to Micro:bit Sound converter"
|
||||
font_size: 30
|
||||
bold: True
|
||||
italic: True
|
||||
color: (50, 50, 255, 1)
|
||||
Label:
|
||||
id: infobox
|
||||
text: "Output will be automatically added to your clipboard once you have selected a file"
|
||||
Button:
|
||||
text: "choose file to start"
|
||||
background_color: app.theme_cls.primary_color
|
||||
on_release:
|
||||
app.root.current = "ChooseFile"
|
||||
root.manager.transition.direction = "left"
|
||||
24
gui/loading_screen.kv
Normal file
24
gui/loading_screen.kv
Normal file
@@ -0,0 +1,24 @@
|
||||
TrackChooseScreen:
|
||||
name: "Track"
|
||||
md_bg_color: app.theme_cls.accent_color
|
||||
GridLayout:
|
||||
cols:1
|
||||
Label:
|
||||
text: "Track selection"
|
||||
font_size: 30
|
||||
bold: True
|
||||
italic: True
|
||||
color: (50, 50, 255, 1)
|
||||
FloatLayout:
|
||||
Spinner:
|
||||
id: track_spinner
|
||||
size_hint: 0.7, 0.2
|
||||
pos_hint: {"x": 0.15, "y":0.5}
|
||||
background_color: (0, 0, 0, 1)
|
||||
text: "Select a track"
|
||||
values: ["Test"]
|
||||
Button:
|
||||
text: "confirm"
|
||||
background_color: app.theme_cls.primary_color
|
||||
on_release:
|
||||
root.extract()
|
||||
Reference in New Issue
Block a user