From 2ab3bfe5a0ffa3ee07f1d4e8211ef0e731f1669e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 23 Apr 2019 19:15:21 +0200 Subject: ui: reduce icon overlay size Signed-off-by: Jason A. Donenfeld --- ui/tunnelstatusimageprovider.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui') 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 { -- cgit v1.2.3-59-g8ed1b