From 642a7bd76c8b10a4fe846a561bda9296452a7a08 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 --- ui/tunnelstatusimageprovider.go | 4 ++-- 1 file 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 { -- cgit v1.2.3-59-g8ed1b