Skip to content

Commit

Permalink
add contact button
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jul 16, 2024
1 parent a185fd1 commit c29d979
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c29d979

Please sign in to comment.