{{/* estilo-menu-item: one row in any estilo-menu. Data: menu.Item, with exactly one of Href (a link), Action (a one-button POST form), Dialog (a button opening the with that id through the platform's invoker command) or Controls (a toggle for the region with that id, disabled until the app's script binds it). The first three work with scripts off; chrome.js only adds the dialog for engines without invoker commands. Callers supply the label in their own locale; Key is an already-formatted shortcut (menu.Shortcut). Danger marks a destructive row (estilo-menu-item="danger"), drawn in the negative tone. Icon, when set, is drawn before the label as decoration. */}} {{define "estilo-menu-item"}}{{if .Action}}
{{else if .Dialog}}{{else if .Controls}}{{else}}{{template "estilo-menu-item-body" .}}{{end}}{{end}} {{define "estilo-menu-item-body"}}{{with .Icon}}{{.}}{{end}}{{.Label}}{{with .Key}}{{.}}{{end}}{{end}} {{/* estilo-icon-check: the glyph inside an estilo-menu-check column. Lucide "check" (ISC, brand/LICENSE.lucide). */}} {{define "estilo-icon-check"}}{{end}}