Buttons can now have icons

This commit is contained in:
2023-03-05 00:05:56 -05:00
parent 11c747e225
commit 0071994ba6
3 changed files with 57 additions and 5 deletions

View File

@@ -55,6 +55,7 @@ func NewDialog (
if len(buttons) == 0 {
button := basicElements.NewButton("OK")
button.SetIcon(theme.IconYes)
button.OnClick(window.Close)
container.Adopt(button, false)
button.Focus()