From d1f0786043a8419d9fd64b6ddf56f9f655a79bd8 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 23 Aug 2024 21:39:39 -0400 Subject: [PATCH] Dialog boxes have icons now --- dialog.go | 1 + 1 file changed, 1 insertion(+) 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))