Skip to content

Commit

Permalink
fix color component output; rerun demos
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Miller committed Feb 22, 2024
1 parent eec8c8f commit bb631f8
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion examples/deeper/color/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ func (m Model) View() string {
Foreground(lipgloss.Color(m.RGB)).
Render(m.Sample)

return sample + "\n\n\n\n\n" + "enter: select, esc: back\n"
return "\n" + sample + "\n\n\n\n" + "enter: select, esc: back\n"
}
4 changes: 2 additions & 2 deletions examples/deeper/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions examples/deeper/demo.tape
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ Output demo.gif

Require echo

Set FontSize 32
Set Width 1200
Set Height 600
Set FontSize 28
Set Width 1800
Set Height 900
Set PlaybackSpeed 0.5

Set Shell bash
Sleep 1.5s
Sleep 0.5s
Type "go run ."
Enter
Sleep 1.5s
Expand Down Expand Up @@ -39,5 +39,5 @@ Sleep 1s
Enter
Sleep 2s
Enter
Sleep 1s
Sleep 4s

2 changes: 1 addition & 1 deletion examples/deeper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func main() {
}

s := shell.New()
s.Navstack.Push(navstack.NavigationItem{Model: m, Title: "main menu"})
s.Navstack.Push(navstack.NavigationItem{Model: m, Title: "Artists"})
p := tea.NewProgram(s, tea.WithAltScreen())

finalshell, err := p.Run()
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/color/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ func (m Model) View() string {
Foreground(lipgloss.Color(m.RGB)).
Render(m.Sample)

return sample + "\n\n\n\n\n" + "enter: select, esc: back\n"
return "\n" + sample + "\n\n\n\n" + "enter: select, esc: back\n"
}
4 changes: 2 additions & 2 deletions examples/simple/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion examples/simple/demo.tape
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
Set Shell zsh
Output demo.gif

Require echo

Set FontSize 28
Set Width 1800
Set Height 900
Set PlaybackSpeed 0.5

Set Shell bash
Sleep 2.5s
Type "go run ."
Enter
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func main() {
menu: menu.New(title, choices, nil),
}
s := shell.New()
s.Navstack.Push(navstack.NavigationItem{Model: m, Title: "main menu"})
s.Navstack.Push(navstack.NavigationItem{Model: m, Title: "Colors"})
p := tea.NewProgram(s, tea.WithAltScreen())

finalshell, err := p.Run()
Expand Down

0 comments on commit bb631f8

Please sign in to comment.