Skip to content

Commit

Permalink
docs(examples): update RequestBackgroundColor API
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Oct 29, 2024
1 parent 459cab9 commit b065739
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/list-fancy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ type model struct {
func (m model) Init() (tea.Model, tea.Cmd) {
m.once = new(sync.Once)
return m, tea.Batch(
tea.BackgroundColor,
tea.RequestBackgroundColor,
tea.EnterAltScreen,
)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/list-simple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (m model) Init() (tea.Model, tea.Cmd) {
l.SetFilteringEnabled(false)
m.list = l

return m, tea.BackgroundColor
return m, tea.RequestBackgroundColor
}

func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
Expand Down
2 changes: 1 addition & 1 deletion examples/paginator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (m model) Init() (tea.Model, tea.Cmd) {
m.paginator = p
m.items = items

return m, tea.BackgroundColor
return m, tea.RequestBackgroundColor
}

func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
Expand Down
2 changes: 1 addition & 1 deletion examples/tabs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type model struct {
}

func (m model) Init() (tea.Model, tea.Cmd) {
return m, tea.BackgroundColor
return m, tea.RequestBackgroundColor
}

func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
Expand Down

0 comments on commit b065739

Please sign in to comment.