From 89eb88c982f2f9a30a684366204359002849cced Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sat, 14 Jan 2023 13:57:12 -0500 Subject: [PATCH] Draw border around mouse test --- elements/testing/mouse.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/elements/testing/mouse.go b/elements/testing/mouse.go index 6c4a90f..350b01c 100644 --- a/elements/testing/mouse.go +++ b/elements/testing/mouse.go @@ -37,7 +37,10 @@ func (element *Mouse) Handle (event tomo.Event) { element.core, theme.AccentImage(), element.Bounds()) - // TODO: draw a stroked rectangle around the edges + artist.StrokeRectangle ( + element.core, + artist.NewUniform(color.Black), 5, + element.Bounds()) artist.Line ( element.core, artist.NewUniform(color.White), 1, image.Pt(1, 1),