- commit
- 4ee50dedbb9e93ab24efdb0192e806587640b1dd
- parent
- 45270ca2c20d1162596f956322d00634137da00f
- author
- Dami <dami.etoile@gmail.com>
| M | hashiwokakero/ | 2 | +- |
| M | lightsout/ | 2 | +- |
| M | model.go | 2 | +- |
| M | nonogram/ | 4 | ++-- |
| M | takuzu/ | 2 | +- |
| M | wordsearch/ | 2 | +- |
@@ -132,7 +132,7 @@ func (m Model) View() string {
132132 info := infoView(&m.puzzle)133133 status := statusBarView(m.selectedIsland != nil, m.showFullHelp)134134 135- return lipgloss.JoinVertical(lipgloss.Left, title, grid, info, status)135+ return lipgloss.JoinVertical(lipgloss.Center, title, grid, info, status)136136 }137137 138138 func (m Model) SetTitle(t string) game.Gamer {@@ -62,7 +62,7 @@ func (m Model) View() string {
6262 grid := gridView(m.grid, m.cursor, solved)6363 status := statusBarView(m.showFullHelp)6464 65- return lipgloss.JoinVertical(lipgloss.Left, title, grid, status)65+ return lipgloss.JoinVertical(lipgloss.Center, title, grid, status)6666 }6767 6868 func (m Model) SetTitle(t string) game.Gamer {@@ -95,9 +95,9 @@ func (m Model) View() string {
9595 s1 := lipgloss.JoinHorizontal(lipgloss.Bottom, spacer, c)9696 s2 := lipgloss.JoinHorizontal(lipgloss.Top, r, g)9797 98- grid := lipgloss.JoinVertical(lipgloss.Left, s1, s2)98+ grid := lipgloss.JoinVertical(lipgloss.Center, s1, s2)9999 100- return lipgloss.JoinVertical(lipgloss.Left, title, grid, status)100+ return lipgloss.JoinVertical(lipgloss.Center, title, grid, status)101101 }102102 103103 func (m Model) GetDebugInfo() string {@@ -75,7 +75,7 @@ func (m Model) View() string {
7575 title := game.TitleBarView("Takuzu", m.modeTitle, m.solved)7676 grid := gridView(m.grid, m.provided, m.cursor, m.solved)7777 status := statusBarView(m.showFullHelp)78- return lipgloss.JoinVertical(lipgloss.Left, title, grid, status)78+ return lipgloss.JoinVertical(lipgloss.Center, title, grid, status)7979 }8080 8181 func (m Model) SetTitle(t string) game.Gamer {@@ -53,7 +53,7 @@ func renderView(m Model) string {
5353 5454 status := statusBarView(m.showFullHelp)5555 56- return lipgloss.JoinVertical(lipgloss.Left, title, mainView, status)56+ return lipgloss.JoinVertical(lipgloss.Center, title, mainView, status)5757 }5858 5959 func statusBarView(showFullHelp bool) string {