From f81e4a813766980c6e837893e19cc10bf6d7c41e Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Fri, 10 May 2024 14:04:55 -0400 Subject: text alignment --- gui/widget/input.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui/widget/input.go') diff --git a/gui/widget/input.go b/gui/widget/input.go index 954e7db..f47f587 100644 --- a/gui/widget/input.go +++ b/gui/widget/input.go @@ -64,9 +64,9 @@ Loop: func inputDraw(str []byte, focused bool, r image.Rectangle) func(draw.Image) image.Rectangle { return func(drw draw.Image) image.Rectangle { if focused { - text.Draw(str, drw, r, GREEN, FOCUS_COLOR) + text.Draw(str, drw, r, GREEN, FOCUS_COLOR, text.ALIGN_RIGHT) } else { - text.Draw(str, drw, r, GREEN, WHITE) + text.Draw(str, drw, r, GREEN, WHITE, text.ALIGN_RIGHT) } return r } -- cgit v1.2.3