From 2b3ade2dcdac7bb9c9604a1d222dc0c5d6fa547b Mon Sep 17 00:00:00 2001 From: shilangyu Date: Sat, 30 Nov 2019 19:39:10 +0100 Subject: [PATCH] modal and stats style tweaks --- ui/singleplayer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/singleplayer.go b/ui/singleplayer.go index 664e418..349caec 100644 --- a/ui/singleplayer.go +++ b/ui/singleplayer.go @@ -26,6 +26,7 @@ func CreateSingleplayer(app *tview.Application) error { pages := tview.NewPages(). AddPage("modal", tview.NewModal(). SetText("Play again?"). + SetBackgroundColor(tcell.ColorDefault). AddButtons([]string{"yes", "exit"}). SetDoneFunc(func(index int, label string) { switch index { @@ -90,7 +91,7 @@ func CreateSingleplayer(app *tview.Application) error { layout := tview.NewFlex() statsFrame := tview.NewFlex().SetDirection(tview.FlexRow) - statsFrame.SetBorder(true).SetBorderPadding(1, 1, 1, 1) + statsFrame.SetBorder(true).SetBorderPadding(1, 1, 1, 1).SetTitle("STATS") for _, statsWi := range statsWis { statsFrame.AddItem(statsWi, 1, 1, false) }