From d6a5e90b3cec78f98938fae34c3e046b81d7d203 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Sun, 15 Jun 2025 19:54:19 +0200 Subject: [PATCH] Design temporary save --- gui/home/home.kv | 56 ++++++++++++++++++++++++++++++++---------------- gui/home/home.py | 1 - requirements.txt | 2 +- 3 files changed, 38 insertions(+), 21 deletions(-) diff --git a/gui/home/home.kv b/gui/home/home.kv index 8e113c3..962b7bc 100644 --- a/gui/home/home.kv +++ b/gui/home/home.kv @@ -1,41 +1,59 @@ : name: "home" - GridLayout: + MDGridLayout: cols:1 - MDLabel: - text: "BiogasanlageControllerApp" - font_size: 50 - halign: 'center' - valign: 'center' - bold: True - italic: True - theme_text_color: 'Secondary' - FloatLayout: - GridLayout: + MDFloatLayout: + MDCard: + radius: 36 + pos_hint: {"center_x": .5, "center_y": .5} + size_hint: .6, .8 + + Image: + source: "BiogasControllerAppLogo.png" + pos_hint: {"top": 1} + 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} + + + MDFloatLayout: + MDGridLayout: cols: 2 - size_hint: 0.8, 0.8 - pos_hint: {"x": 0.1, "y": 0.1} + size_hint: 0.2, 0.2 + pos_hint: {"x": 0.4, "y": 0.3} + MDRaisedButton: - style: "outlined" on_release: root.start() - text: "Start" font_size: 30 - Button: + text: "Start" + radius: [25] + MDRaisedButton: text: "Quit" - background_color: (0, 0, 0, 0.6) font_size: 30 on_release: root.quit() + MDLabel: text: "You are running version V3.0.1" font_size: 13 pos_hint: {"y": -0.45, "x":0} halign: 'center' - Button: + MDFlatButton: text: "About" font_size: 13 size_hint: 0.07, 0.06 pos_hint: {"x":0.01, "y":0.01} - background_color: (50, 0, 0, 0.2) on_release: root.to_about() diff --git a/gui/home/home.py b/gui/home/home.py index c1f1246..ff8ceb4 100644 --- a/gui/home/home.py +++ b/gui/home/home.py @@ -1,4 +1,3 @@ -from kivymd.app import MDApp from kivymd.uix.screen import MDScreen from kivy.lang import Builder from gui.popups.popups import DualRowPopup, QuitPopup, TwoActionPopup diff --git a/requirements.txt b/requirements.txt index 5860717..7c08314 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ kivy[base] -kivymd +kivymd==1.1.1 pyserial