From dbeda075242845e9c199582d3c3dbd4a08bda6ce Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 24 Apr 2019 15:48:43 +0200 Subject: 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 --- 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 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 { -- cgit v1.2.3-59-g8ed1b