mirror of
https://github.com/janishutz/BiogasControllerApp.git
synced 2025-11-25 05:44:23 +00:00
Start reworking design
This commit is contained in:
@@ -54,7 +54,7 @@ else:
|
||||
# Load kivy modules. Kivy is the UI framework used. See https://kivy.org
|
||||
# from kivy.core.window import Window, Config
|
||||
from kivy.uix.screenmanager import ScreenManager
|
||||
from kivy.app import App
|
||||
from kivymd.app import MDApp
|
||||
|
||||
|
||||
# Store the current app version
|
||||
@@ -77,7 +77,7 @@ from gui.main.main import MainScreen
|
||||
# │ Screen Manager │
|
||||
# ╰────────────────────────────────────────────────╯
|
||||
# Kivy uses a screen manager to manage pages in the application
|
||||
class BiogasControllerApp(App):
|
||||
class BiogasControllerApp(MDApp):
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
self.screen_manager = ScreenManager()
|
||||
@@ -88,6 +88,12 @@ class BiogasControllerApp(App):
|
||||
if config["Dev"]["use_test_library"] == "True":
|
||||
com = lib.test.com.Com()
|
||||
|
||||
self.theme_cls.theme_style = "Dark"
|
||||
self.theme_cls.primary_palette = "Green"
|
||||
self.theme_cls.accent_palette = "Lime"
|
||||
self.theme_cls.theme_style_switch_animation = True
|
||||
self.theme_cls.theme_style_switch_animation_duration = 0.8
|
||||
|
||||
self.icon = "./BiogasControllerAppLogo.png"
|
||||
self.title = "BiogasControllerApp-" + app_version
|
||||
self.screen_manager.add_widget(HomeScreen(com, name="home"))
|
||||
|
||||
Reference in New Issue
Block a user