aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/ui.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-01 18:30:07 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-02 08:41:08 +0200
commit0bc8cd5e206ca0c5450c4d0b5e4a6e011aee2a84 (patch)
treebdc67110c0e9aca3ccde87b1c263e9c34df01594 /ui/ui.go
parentui: rework margins (diff)
downloadwireguard-windows-0bc8cd5e206ca0c5450c4d0b5e4a6e011aee2a84.tar.xz
wireguard-windows-0bc8cd5e206ca0c5450c4d0b5e4a6e011aee2a84.zip
ui: use icons instead of unicode font
Diffstat (limited to 'ui/ui.go')
-rw-r--r--ui/ui.go12
1 files changed, 3 insertions, 9 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 2625423a..4aeb4f42 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -124,20 +124,14 @@ func onAbout(owner walk.Form) {
dlg, _ := walk.NewDialogWithFixedSize(owner)
dlg.SetTitle("About WireGuard")
dlg.SetLayout(vbl)
- dlg.SetIcon(iconProvider.baseIcon)
+ dlg.SetIcon(iconProvider.wireguardIcon)
font, _ := walk.NewFont("Segoe UI", 9, 0)
dlg.SetFont(font)
- icon, err := walk.NewIconFromResourceIdWithSize(1, walk.Size{128, 128})
- if err != nil {
- panic(err)
- }
- dlg.AddDisposable(icon)
-
iv, _ := walk.NewImageView(dlg)
- iv.SetImage(icon)
-
+ logo, _ := walk.NewIconFromResourceWithSize("$wireguard.ico", walk.Size{owner.DPI() * 4 / 3, owner.DPI() * 4 / 3})
+ iv.SetImage(logo)
wgFont, _ := walk.NewFont("Segoe UI", 16, walk.FontBold)
wgLbl, _ := walk.NewLabel(dlg)