diff --git a/dialog.go b/dialog.go index d8ec2aa..a6180f1 100644 --- a/dialog.go +++ b/dialog.go @@ -53,6 +53,7 @@ func NewDialog (kind DialogKind, parent tomo.Window, title, message string, opti case DialogError: iconId = tomo.IconDialogError } dialog.SetTitle(title) + dialog.SetIcon(iconId) icon := NewIcon(iconId, tomo.IconSizeLarge) messageText := NewLabel(message) messageText.SetAttr(tomo.AAlign(tomo.AlignStart, tomo.AlignMiddle))