diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-06 17:08:08 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-07 07:30:36 +0200 |
commit | 554ef2aff573cb7d471a84a11c1752694f1cb472 (patch) | |
tree | f29eb34c5ed0655386f79d4ba64411d541926b0d /ui/updatepage.go | |
parent | installer: simplify tmpfile cleanup (diff) | |
download | wireguard-windows-554ef2aff573cb7d471a84a11c1752694f1cb472.tar.xz wireguard-windows-554ef2aff573cb7d471a84a11c1752694f1cb472.zip |
ui: scale icons according to DPI
Diffstat (limited to 'ui/updatepage.go')
-rw-r--r-- | ui/updatepage.go | 2 |
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 |