Add theme query display websocket commands
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

This commit is contained in:
Snider 2026-04-15 20:06:26 +01:00
parent 2343f2522a
commit eba34209ae

View file

@ -590,6 +590,10 @@ func (s *Service) handleWSMessage(msg WSMessage) core.Result {
return c.QUERY(notification.QueryPermission{})
case "notification:with-actions":
return c.Action("notification.send").Run(ctx, wsOptions(msg.Data))
case "theme:get":
return c.QUERY(environment.QueryTheme{})
case "theme:system":
return c.QUERY(environment.QueryInfo{})
case "theme:set":
theme, _ := msg.Data["theme"].(string)
return c.Action("environment.setTheme").Run(ctx, core.NewOptions(