From 0b285aef85ab3d8adc48094cc0b591d37a40ea9f Mon Sep 17 00:00:00 2001 From: Snider Date: Fri, 24 Oct 2025 16:09:12 +0100 Subject: [PATCH] Add system tray HTML interface and update tray functionality --- cmd/app/frontend/dist/system-tray.html | 98 ++++++++++++++++++++++++++ display/tray.go | 6 +- 2 files changed, 101 insertions(+), 3 deletions(-) create mode 100644 cmd/app/frontend/dist/system-tray.html diff --git a/cmd/app/frontend/dist/system-tray.html b/cmd/app/frontend/dist/system-tray.html new file mode 100644 index 00000000..90d2cd23 --- /dev/null +++ b/cmd/app/frontend/dist/system-tray.html @@ -0,0 +1,98 @@ + + + + + + Core System Tray + + + + + + +
+ +
+

+ Core Status +

+

Services at a glance.

+
+ +
+
+ + +
+
+ + + + +
+
+

Config

+

State and preferences loaded.

+
+
+ + +
+
+ + + +
+
+

Display

+

UI manager is active.

+
+
+ + +
+
+ + + +
+
+

Crypt

+

Security services are running.

+
+
+ +
+
+ +
+

Core Framework Active

+
+ +
+ + + + \ No newline at end of file diff --git a/display/tray.go b/display/tray.go index 87670117..2f048d74 100644 --- a/display/tray.go +++ b/display/tray.go @@ -10,8 +10,8 @@ import ( func (d *API) systemTray() { systray := d.core.App.SystemTray.New() - systray.SetTooltip("Lethean Desktop") - systray.SetLabel("hey") + systray.SetTooltip("Core") + systray.SetLabel("Core") //appTrayIcon, _ := d.assets.ReadFile("assets/apptray.png") // //if runtime.GOOS == "darwin" { @@ -25,7 +25,7 @@ func (d *API) systemTray() { trayWindow := d.NewWithStruct(&Window{ Name: "system-tray", Title: "System Tray Status", - URL: "/#/system-tray", + URL: "system-tray.html", Width: 400, Frameless: true, Hidden: true,