diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-08 11:52:18 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-08 12:16:49 +0200 |
commit | 4835f350ffe6b4fa589748e808fb84cc7c53e103 (patch) | |
tree | e0a3488aa1447bd741735037a9b347963b428d1d /ui/aboutdialog.go | |
parent | installer: smarter detection of SYSTEM profile folder (diff) | |
download | wireguard-windows-4835f350ffe6b4fa589748e808fb84cc7c53e103.tar.xz wireguard-windows-4835f350ffe6b4fa589748e808fb84cc7c53e103.zip |
ui: get correctly sized system iconsv0.0.1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/aboutdialog.go')
-rw-r--r-- | ui/aboutdialog.go | 5 |
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) |