From c29d97992c87f4c05434425650aac8b71954ac5b Mon Sep 17 00:00:00 2001 From: Kai O'Reilly Date: Mon, 15 Jul 2024 17:16:11 -0700 Subject: [PATCH] add contact button --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index b8bbee7..a94c88f 100644 --- a/main.go +++ b/main.go @@ -48,6 +48,12 @@ func main() { pg.Context.OpenURL("https://github.com/cogentcore") }) }) + tree.Add(p, func(w *core.Button) { + w.SetText("Contact").SetIcon(icons.Mail) + w.OnClick(func(e events.Event) { + core.MessageDialog(w, "contact@cogentcore.org", "Contact us via email at") + }) + }) }) htmlcore.ElementHandlers["home-page"] = func(ctx *htmlcore.Context) bool {