aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/aboutdialog.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-08 11:52:18 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-08 12:16:49 +0200
commit77b59845aca3b7bb773663aeda8094d39725d415 (patch)
treee0a3488aa1447bd741735037a9b347963b428d1d /ui/aboutdialog.go
parentinstaller: smarter detection of SYSTEM profile folder (diff)
downloadwireguard-windows-77b59845aca3b7bb773663aeda8094d39725d415.tar.xz
wireguard-windows-77b59845aca3b7bb773663aeda8094d39725d415.zip
ui: get correctly sized system icons
Diffstat (limited to 'ui/aboutdialog.go')
-rw-r--r--ui/aboutdialog.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/aboutdialog.go b/ui/aboutdialog.go
index da8f7f9f..22148ac1 100644
--- a/ui/aboutdialog.go
+++ b/ui/aboutdialog.go
@@ -25,7 +25,10 @@ func onAbout(owner walk.Form) {
dlg, _ := walk.NewDialogWithFixedSize(owner)
dlg.SetTitle("About WireGuard")
dlg.SetLayout(vbl)
- dlg.SetIcon(iconProvider.wireguardIcon)
+ wireguardIcon, err := walk.NewIconFromResourceWithSize("$wireguard.ico", walk.Size{dlg.DPI()/3, dlg.DPI()/3}) //TODO: calculate DPI dynamically
+ if err == nil {
+ dlg.SetIcon(wireguardIcon)
+ }
font, _ := walk.NewFont("Segoe UI", 9, 0)
dlg.SetFont(font)