Initial GUI-Development progress - 2022-02-26-16:42

This commit is contained in:
janis
2022-02-26 16:44:03 +01:00
parent f3b47e0f5b
commit 1a60b68461
10 changed files with 161 additions and 114 deletions

16
gui_main/configurator.kv Normal file
View File

@@ -0,0 +1,16 @@
MDScreen:
name: "Config"
md_bg_color: (0,0,1,0.5)
MDFloatLayout:
cols:1
MDFlatButton:
text: "Back"
pos_hint: {"x": 0.15, "y": 0.1}
font_size: 20
md_bg_color: (0, 0, 0, 1)
size_hint: 0.1, 0.05
on_release:
app.root.current = "HomeScreen"
root.manager.transition.direction = "left"
MDFlatButton:
text: "Test"

31
gui_main/main-gui.kv Normal file
View File

@@ -0,0 +1,31 @@
Home:
name: "HomeScreen"
radius: [25, 25, 25, 25]
md_bg_color: app.theme_cls.accent_color
GridLayout:
cols: 1
Label:
text: "PC-Configurator"
font_size: 50
color: (50, 50, 255, 1)
bold: True
italic: True
FloatLayout:
GridLayout:
cols: 3
size_hint: 0.94, 0.8
pos_hint: {"x":0.03, "y":0.1}
Button:
text: "Configure"
background_color: (0.1, 0.1, 1, 0.5)
on_release:
app.root.current = "Config"
root.manager.transition.direction = "right"
Button:
text: "Settings"
background_color: (0.1, 0.1, 1, 0.5)
on_release:
root.test()
Button:
text: "Quit"
background_color: (0.1, 0.1, 1, 0.5)

24
gui_main/splashscreen.kv Normal file
View File

@@ -0,0 +1,24 @@
MDScreen:
name: "Splash"
on_enter: self.ids.progress.start()
md_bg_color: app.theme_cls.accent_color
GridLayout:
cols: 1
Label:
text: "PC-Configurator"
bold: True
italic: True
font_size: 40
color: app.theme_cls.primary_color
FloatLayout:
BoxLayout:
pos_hint: {"center_y": .3, "center_x": .5}
padding: "10dp"
size_hint_x: .7
MDProgressBar:
id: progress
orientation: "horizontal"
type: "indeterminate"
running_duration: 1
catching_duration: 1