This commit is contained in:
simplePCBuilding
2022-03-09 15:15:39 +01:00
parent 6c85525ca1
commit 8bb93c3957
2 changed files with 117 additions and 0 deletions

62
bin/gui/gui.kv Normal file
View File

@@ -0,0 +1,62 @@
RootScreen:
Home:
Main:
<PathMissingPU>:
title: "NOTICE!"
font_size: 50
size_hint: 0.5, 0.4
auto_dismiss: False
GridLayout:
cols:1
Label:
text: "No path specified, unable to proceed"
font_size: 18
Label:
text: "Please enter a path and try again"
font_size: 15
Button:
text:"Ok"
on_release:
root.dismiss()
<Home>:
name: "Home"
md_bg_color: app.theme_cls.accent_color
GridLayout:
cols: 1
Label:
text: "MusicPlayer V1.0"
color: app.theme_cls.primary_color
font_size: 50
bold: True
italic: True
FloatLayout:
GridLayout:
cols: 1
pos_hint: {"x":0.05, "y":0.05}
size_hint: 0.9, 0.9
FloatLayout:
MDTextField:
id: filepath
hint_text: "Path to Folder containing the Music files"
pos_hint: {"x":0.2, "y":0.5}
size_hint_x: 0.6
Button:
text: "Start"
color: app.theme_cls.primary_color
font_size: 30
bold: True
background_color: (0.5, 0.5, 0.5, 1)
on_release:
root.change_screen()
<Main>:
name: "Main"
GridLayout:
cols: 1
Button:
text: "Back"
on_release:
app.root.current = "Home"