[v3 mac] Add IsDarkMode to application and JS runtime. Add Common.ThemeChanged event

This commit is contained in:
Lea Anthony
2023-08-18 17:36:14 +10:00
parent 79deb37675
commit ffed41553a
25 changed files with 630 additions and 487 deletions
@@ -16,8 +16,10 @@ func (m *MessageProcessor) processApplicationMethod(method string, rw http.Respo
case "Show":
globalApplication.Show()
m.ok(rw)
case "IsDarkMode":
m.json(rw, globalApplication.IsDarkMode())
default:
m.httpError(rw, "Unknown event method: %s", method)
m.httpError(rw, "Unknown application method: %s", method)
}
m.Info("Runtime:", "method", "Application."+method)