aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/updatepage.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-06 17:08:08 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-07 07:30:36 +0200
commit81676b2df3d878e8bca1356590f473669fd461ee (patch)
treef29eb34c5ed0655386f79d4ba64411d541926b0d /ui/updatepage.go
parentinstaller: simplify tmpfile cleanup (diff)
downloadwireguard-windows-81676b2df3d878e8bca1356590f473669fd461ee.tar.xz
wireguard-windows-81676b2df3d878e8bca1356590f473669fd461ee.zip
ui: scale icons according to DPI
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/updatepage.go')
-rw-r--r--ui/updatepage.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/updatepage.go b/ui/updatepage.go
index b5226017..8c01efe4 100644
--- a/ui/updatepage.go
+++ b/ui/updatepage.go
@@ -28,7 +28,7 @@ func NewUpdatePage() (*UpdatePage, error) {
tabIcon, _ := loadSystemIcon("imageres", 1)
defer tabIcon.Dispose()
- bitmap, _ := walk.NewBitmapFromIcon(tabIcon, walk.Size{16, 16}) //TODO: this should use dynamic DPI, but the tab widget seems broken
+ bitmap, _ := walk.NewBitmapFromIcon(tabIcon, walk.Size{up.DPI() / 6, up.DPI() / 6}) //TODO: this should use dynamic DPI
up.SetImage(bitmap)
//TODO: make title bold