diff options
Diffstat (limited to '')
-rw-r--r-- | ui/editdialog.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/editdialog.go b/ui/editdialog.go index 72382120..d55e5486 100644 --- a/ui/editdialog.go +++ b/ui/editdialog.go @@ -58,6 +58,9 @@ func runTunnelEditDialog(owner walk.Form, tunnel *service.Tunnel, clone bool) *c dlg.SetTitle(title) dlg.SetLayout(layout) dlg.SetMinMaxSize(walk.Size{500, 400}, walk.Size{0, 0}) + if icon, err := loadSystemIcon("imageres", 109, dlg.DPI()/3); err == nil { //TODO: calculate DPI dynamically + dlg.SetIcon(icon) + } nameLabel, _ := walk.NewTextLabel(dlg) layout.SetRange(nameLabel, walk.Rectangle{0, 0, 1, 1}) |