diff --git a/ades-office-control-panel.yaml b/ades-office-control-panel.yaml index 94ab6ee..482e3dc 100644 --- a/ades-office-control-panel.yaml +++ b/ades-office-control-panel.yaml @@ -465,22 +465,10 @@ lvgl: text: "\uF015" on_press: then: - - lvgl.matrix.button.update: - id: navAdesOffice - control: - checked: false - - lvgl.matrix.button.update: - id: navGroundFloor - control: - checked: false - - lvgl.matrix.button.update: - id: nav3dPrinter - control: - checked: false - - lvgl.page.show: - id: main_page - animation: FADE_IN - time: 300ms + lvgl.page.show: + id: main_page + animation: FADE_IN + time: 300ms - id: page_next text: "\uF054" on_press: @@ -495,72 +483,6 @@ lvgl: align: TOP_MID id: header_page_main styles: header_footer - widgets: - - label: - text: "Main Menu" - align: CENTER - text_align: CENTER - text_color: 0x00FF00 - - buttonmatrix: - id: mainMenuMatrix - x: 10 - y: 45 - width: 220 - height: 220 - items: - pressed: - bg_color: 0xFFFF00 - rows: - - buttons: - - id: navAdesOffice - text: "Ade's Office" - control: - checkable: true - on_value: - then: - - if: - condition: - lambda: 'return x == 1;' - then: - - lvgl.page.show: - id: ades_office_page - animation: FADE_IN - time: 300ms - - id: navGroundFloor - text: "Ground Floor" - control: - checkable: true - on_value: - then: - - if: - condition: - lambda: 'return x == 1;' - then: - - lvgl.page.show: - id: ground_floor_page - animation: FADE_IN - time: 300ms - - buttons: - - id: nav3dPrinter - text: "3D Printer" - control: - checkable: true - on_value: - then: - - if: - condition: - lambda: 'return x == 1;' - then: - - lvgl.page.show: - id: printer_status - animation: FADE_IN - time: 300ms - - id: ades_office_page - widgets: - - obj: - align: TOP_MID - id: header_page_ades_office - styles: header_footer widgets: - label: text: "Ade's Office"