tool:=func(label,tipstring)core.Widget{returnoverlay.Tooltip{Message:tip,Child:control.Button{Label:label,Style:control.ButtonQuiet,OnPress:func(){}}}}returnbasic.Row{Size:layout.MainMin,Spacing:theme.Space4,Children:[]core.Widget{tool("Bold","Bold (Ctrl+B)"),tool("Italic","Italic (Ctrl+I)"),tool("Link","Insert a link (Ctrl+K)"),}}
basic.Builder{Content:func(ctxcore.BuildContext)core.Widget{returncontrol.Button{Label:"Move to trash",OnPress:func(){overlay.ShowToast(ctx,overlay.Toast{Message:"Moved 3 notes to the trash",Action:"Undo",OnAction:func(){}})}}}}
control.InfoBar{Open:true,Severity:control.SeverityWarning,Title:"You are offline",Message:"Changes are saved on this device and sync when you reconnect.",OnClose:closed,},control.InfoBar{Open:true,Severity:control.SeverityError,Title:"Could not save",Message:"The disk is full.",Action:"Retry",OnAction:func(){},OnClose:closed,},
basic.Builder{Content:func(ctxcore.BuildContext)core.Widget{returncontrol.Button{Label:"Delete",Style:control.ButtonDanger,OnPress:func(){overlay.ShowDialog(ctx,func(dismissfunc())core.Widget{returnoverlay.Dialog{Title:"Delete this note?",Message:"It cannot be undone.",Actions:[]core.Widget{control.Button{Label:"Cancel",OnPress:dismiss},control.Button{Label:"Delete",Style:control.ButtonDanger,OnPress:dismiss},},}})}}}}
basic.Builder{Content:func(ctxcore.BuildContext)core.Widget{returncontrol.Button{Label:"Share",OnPress:func(){overlay.ShowSheet(ctx,overlay.Sheet{Label:"Share note"},func(dismissfunc())core.Widget{returnbasic.Column{Size:layout.MainMin,Spacing:theme.Space8,Children:[]core.Widget{basic.Text{Content:"Anyone with the link can read this note."},basic.Row{Main:layout.MainEnd,Spacing:theme.Space8,Children:[]core.Widget{control.Button{Label:"Cancel",OnPress:dismiss},control.Button{Label:"Copy link",Style:control.ButtonPrimary,OnPress:dismiss},}},}}})}}}}