From f693a97d2e04d06f1c3b12a3193a454f186d9264 Mon Sep 17 00:00:00 2001 From: Matt Olenick Date: Tue, 1 Aug 2023 11:37:51 -0700 Subject: [PATCH] Remove more vestigal code --- katniss-test/src/bin/ui/debug.slint | 39 --------------- .../src/bin/ui/hyperdrive_console.slint | 49 ------------------- katniss-test/src/bin/ui/main.slint | 2 - 3 files changed, 90 deletions(-) delete mode 100644 katniss-test/src/bin/ui/debug.slint delete mode 100644 katniss-test/src/bin/ui/hyperdrive_console.slint diff --git a/katniss-test/src/bin/ui/debug.slint b/katniss-test/src/bin/ui/debug.slint deleted file mode 100644 index cfc3312..0000000 --- a/katniss-test/src/bin/ui/debug.slint +++ /dev/null @@ -1,39 +0,0 @@ -import { VerticalBox , HorizontalBox} from "std-widgets.slint"; - -export component DebugBox inherits HorizontalBox { - in property powered_time_secs; - in property mode; - - HorizontalBox { - Text { - text: "target:"; - } - Text { - text: "TODO!"; - } - } - HorizontalBox { - Text { - text: "mode:"; - } - Text { - text: mode; - } - } - HorizontalBox { - Text { - text: "history:"; - } - Text { - text: "TODO!"; - } - } - HorizontalBox { - Text { - text: "powered_time_secs:"; - } - Text { - text: powered_time_secs; - } - } -} diff --git a/katniss-test/src/bin/ui/hyperdrive_console.slint b/katniss-test/src/bin/ui/hyperdrive_console.slint deleted file mode 100644 index dba3f92..0000000 --- a/katniss-test/src/bin/ui/hyperdrive_console.slint +++ /dev/null @@ -1,49 +0,0 @@ -import { VerticalBox , HorizontalBox} from "std-widgets.slint"; - -export component HyperdriveConsole inherits HorizontalBox { - in property mode; - in property powered_time_secs; - - // callback docs: - // https://slint.dev/releases/1.1.1/docs/slint/src/reference/callbacks - callback power_clicked; - - Rectangle { - animate background { - duration: 500ms; - } - height: 100px; - width: 100px; - border-radius: self.width / 2; - - states [ - off when mode == 0: { - background: grey; - } - warming when mode == 1: { - background: yellow; - } - engaged when mode >= 2: { - background: green; - } - ] - - Text { - text: mode; - font-size: 16px; - color: black; - - states [ - off when mode == 0: { - text: "Offline"; - } - warming when mode == 1: { - text: "Warming"; - } - engaged when mode >= 2: { - text: "Engaged"; - } - ] - } - } -} \ No newline at end of file diff --git a/katniss-test/src/bin/ui/main.slint b/katniss-test/src/bin/ui/main.slint index fa881f2..6f77db1 100644 --- a/katniss-test/src/bin/ui/main.slint +++ b/katniss-test/src/bin/ui/main.slint @@ -1,6 +1,4 @@ import { VerticalBox , HorizontalBox, Slider, SpinBox} from "std-widgets.slint"; -import { DebugBox } from "debug.slint"; -import { HyperdriveConsole } from "hyperdrive_console.slint"; import { VerticalVolume } from "vertical_volume.slint"; export component MainWindow inherits Window {