mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[v3 mac] Add IsDarkMode to application and JS runtime. Add Common.ThemeChanged event
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user