From ed0eba953f4f4b7ff94056da8ffa58ef3fa539d6 Mon Sep 17 00:00:00 2001 From: Erdem Eker Date: Thu, 30 May 2024 15:21:06 +0300 Subject: [PATCH] Update box.md white text on white background color was invisible. --- container/box.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/container/box.md b/container/box.md index 69e9db4..c0221be 100644 --- a/container/box.md +++ b/container/box.md @@ -48,12 +48,12 @@ func main() { myApp := app.New() myWindow := myApp.NewWindow("Box Layout") - text1 := canvas.NewText("Hello", color.White) - text2 := canvas.NewText("There", color.White) - text3 := canvas.NewText("(right)", color.White) + text1 := canvas.NewText("Hello", color.Black) + text2 := canvas.NewText("There", color.Black) + text3 := canvas.NewText("(right)", color.Black) content := container.New(layout.NewHBoxLayout(), text1, text2, layout.NewSpacer(), text3) - text4 := canvas.NewText("centered", color.White) + text4 := canvas.NewText("centered", color.Black) centered := container.New(layout.NewHBoxLayout(), layout.NewSpacer(), text4, layout.NewSpacer()) myWindow.SetContent(container.New(layout.NewVBoxLayout(), content, centered)) myWindow.ShowAndRun()