diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-24 15:48:43 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-24 15:48:43 +0200 |
commit | dbeda075242845e9c199582d3c3dbd4a08bda6ce (patch) | |
tree | 87018522ea5c3a623ee2bbba5cd82bd144f29955 /ui | |
parent | ui: use tabs in main window and refactor tunnels ui and log dialog into tab pages (diff) | |
download | wireguard-windows-dbeda075242845e9c199582d3c3dbd4a08bda6ce.tar.xz wireguard-windows-dbeda075242845e9c199582d3c3dbd4a08bda6ce.zip |
Revert "ui: reduce icon overlay size"
This reverts commit 642a7bd76c8b10a4fe846a561bda9296452a7a08.
The right way to fix this is by dealing with the DPI stuff properly.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | ui/tunnelstatusimageprovider.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/tunnelstatusimageprovider.go b/ui/tunnelstatusimageprovider.go index a88e520e..1120ecea 100644 --- a/ui/tunnelstatusimageprovider.go +++ b/ui/tunnelstatusimageprovider.go @@ -265,8 +265,8 @@ func (tsip *TunnelStatusImageProvider) IconWithOverlayForState(baseIcon *walk.Ic return nil, err } - w := int(float64(size.Width) * 0.6) - h := int(float64(size.Height) * 0.6) + w := int(float64(size.Width) * 0.75) + h := int(float64(size.Height) * 0.75) bounds := walk.Rectangle{4 + size.Width - w, 4 + size.Height - h, w, h} if err := tsip.PaintForState(state, canvas, bounds); err != nil { |