aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/tunnelstatusimageprovider.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-04-23 19:15:21 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-04-23 19:15:21 +0200
commit642a7bd76c8b10a4fe846a561bda9296452a7a08 (patch)
tree52067a86dfb27dc674f4e0c8250577cc8115be74 /ui/tunnelstatusimageprovider.go
parentui: use more horizontal space for conf view (diff)
downloadwireguard-windows-642a7bd76c8b10a4fe846a561bda9296452a7a08.tar.xz
wireguard-windows-642a7bd76c8b10a4fe846a561bda9296452a7a08.zip
ui: reduce icon overlay size
Diffstat (limited to '')
-rw-r--r--ui/tunnelstatusimageprovider.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/tunnelstatusimageprovider.go b/ui/tunnelstatusimageprovider.go
index 99447526..b5bb581a 100644
--- a/ui/tunnelstatusimageprovider.go
+++ b/ui/tunnelstatusimageprovider.go
@@ -186,8 +186,8 @@ func (tsip *TunnelStatusImageProvider) IconWithOverlayForState(baseIcon *walk.Ic
return nil, err
}
- w := int(float64(size.Width) * 0.75)
- h := int(float64(size.Height) * 0.75)
+ w := int(float64(size.Width) * 0.6)
+ h := int(float64(size.Height) * 0.6)
bounds := walk.Rectangle{4 + size.Width - w, 4 + size.Height - h, w, h}
if err := tsip.PaintForState(state, canvas, bounds); err != nil {