Skip to content

Commit

Permalink
modal and stats style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
shilangyu committed Nov 30, 2019
1 parent fce6c12 commit 2b3ade2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/singleplayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 2b3ade2

Please sign in to comment.