aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/editdialog.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-12 12:11:02 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-12 12:11:02 +0200
commit17e72f2adf4e16a2218632ad0d4ebd591694f9d9 (patch)
treed11c55f2b8e9d31f2fc4fc670391f86ab2cc0be2 /ui/editdialog.go
parentui: don't tie ctrl+S to exporting (diff)
downloadwireguard-windows-17e72f2adf4e16a2218632ad0d4ebd591694f9d9.tar.xz
wireguard-windows-17e72f2adf4e16a2218632ad0d4ebd591694f9d9.zip
ui: give editor different icon
Diffstat (limited to 'ui/editdialog.go')
-rw-r--r--ui/editdialog.go3
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})