mirror of
https://github.com/janishutz/BiogasControllerApp.git
synced 2025-11-25 13:54:24 +00:00
63 lines
1.7 KiB
Plaintext
63 lines
1.7 KiB
Plaintext
<HomeScreen>:
|
|
name: "home"
|
|
MDFloatLayout:
|
|
Image:
|
|
source: "BiogasControllerAppLogo.png"
|
|
pos_hint: {"top": 0.9}
|
|
size_hint_y: .3
|
|
radius: 36, 36, 0, 0
|
|
allow_stretch: True
|
|
keep_ratio: True
|
|
|
|
MDGridLayout:
|
|
cols: 1
|
|
MDLabel:
|
|
text: "BiogasControllerApp"
|
|
font_size: 50
|
|
halign: 'center'
|
|
valign: 'center'
|
|
bold: True
|
|
italic: True
|
|
theme_text_color: 'Secondary'
|
|
pos_hint: {'center_x': 0, 'center_y': 0}
|
|
|
|
|
|
MDGridLayout:
|
|
spacing: 20
|
|
size_hint: None, None
|
|
size: self.minimum_size
|
|
cols: 2
|
|
pos_hint: {'center_x': 0.5, 'center_y': 0.3 }
|
|
MDFillRoundFlatButton:
|
|
font_size: 30
|
|
text: "Start"
|
|
on_release: root.start()
|
|
|
|
MDFillRoundFlatButton:
|
|
text: "Quit"
|
|
font_size: 30
|
|
pos_hint: {"x": 0.7, "center_y": 0}
|
|
on_release: root.quit()
|
|
|
|
MDLabel:
|
|
text: "You are running version V3.1.1"
|
|
font_size: 13
|
|
pos_hint: {"y": -0.45, "x":0}
|
|
halign: 'center'
|
|
|
|
MDFlatButton:
|
|
text: "About"
|
|
font_size: 13
|
|
size_hint: 0.07, 0.06
|
|
pos_hint: {"x":0.01, "y":0.01}
|
|
on_release:
|
|
root.to_about()
|
|
|
|
# MDFlatButton:
|
|
# text: "Change Theme"
|
|
# font_size: 13
|
|
# size_hint: 0.07, 0.06
|
|
# pos_hint: {"right":0.99, "y":0.01}
|
|
# on_release:
|
|
# app.change_theme()
|