1786105995

This commit is contained in:
2026-08-07 14:33:15 +02:00
parent c8518219f0
commit 099ba0f222

View File

@@ -67,39 +67,6 @@ component NavigationButton inherits Rectangle {
}
}
component ScreenRefreshButton inherits Rectangle {
callback activated();
border-width: touch.pressed ? 4px : 2px;
border-color: black;
background: white;
touch := TouchArea {
clicked => { root.activated(); }
}
Image {
x: 12px;
y: 14px;
width: 32px;
height: 32px;
source: @image-url("icons/refresh-ccw-dot.svg");
image-fit: contain;
}
Text {
x: 48px;
width: parent.width - 54px;
height: parent.height;
text: "CLEAR";
color: black;
font-size: 14px;
font-weight: 700;
horizontal-alignment: center;
vertical-alignment: center;
}
}
component ThermostatRow inherits Rectangle {
in property <ThermostatData> room;
in property <int> row-index;
@@ -312,15 +279,12 @@ export component AppWindow inherits Window {
in property <string> updated-text: "WAITING FOR HOME ASSISTANT";
in property <string> action-status: "TAP A ROOM TO CONTROL";
in property <string> lights-summary: "LOADING LIGHTS";
in property <bool> living-fan-on: false;
in property <bool> living-fan-available: false;
in-out property <bool> sleeping: false;
callback select-room(int);
callback change-target(int);
callback set-mode(string);
callback set-fan-mode(string);
callback toggle-living-fan();
callback toggle-light(int);
callback refresh();
callback clean-screen();
@@ -523,7 +487,6 @@ export component AppWindow inherits Window {
ControlButton { x: 222px; y: 752px; width: 76px; height: 58px; label: "LOW"; enabled: root.selected-supports-fan; active: root.selected-fan-mode == "LOW"; activated => { root.user-activity(); root.set-fan-mode("Low"); } }
ControlButton { x: 306px; y: 752px; width: 76px; height: 58px; label: "MED"; enabled: root.selected-supports-fan; active: root.selected-fan-mode == "MED"; activated => { root.user-activity(); root.set-fan-mode("Med"); } }
ControlButton { x: 390px; y: 752px; width: 76px; height: 58px; label: "HIGH"; enabled: root.selected-supports-fan; active: root.selected-fan-mode == "HIGH"; activated => { root.user-activity(); root.set-fan-mode("High"); } }
ControlButton { x: 482px; y: 752px; width: 238px; height: 58px; label: root.living-fan-available ? root.living-fan-on ? "LIVING FAN ON" : "LIVING FAN OFF" : "LIVING FAN --"; enabled: root.living-fan-available; active: root.living-fan-on; activated => { root.user-activity(); root.toggle-living-fan(); } }
Text { x: 38px; y: 822px; width: 540px; height: 24px; text: root.action-status; color: black; font-size: 15px; font-weight: 700; overflow: elide; }
Rectangle {
@@ -584,7 +547,6 @@ export component AppWindow inherits Window {
NavigationButton { x: 38px; y: parent.height - 80px; width: 168px; height: 60px; label: "CLIMATE"; active: root.current-page == 0; activated => { root.user-activity(); root.current-page = 0; } }
NavigationButton { x: 222px; y: parent.height - 80px; width: 168px; height: 60px; label: "LIGHTS"; active: root.current-page == 1; activated => { root.user-activity(); root.current-page = 1; } }
NavigationButton { x: 406px; y: parent.height - 80px; width: 168px; height: 60px; label: "CALENDAR"; active: root.current-page == 2; activated => { root.user-activity(); root.current-page = 2; } }
ScreenRefreshButton { x: 608px; y: parent.height - 80px; width: 112px; height: 60px; activated => { root.user-activity(); root.clean-screen(); } }
if root.sleeping: Rectangle {
x: 0;