Skip to content

Commit

Permalink
Updte README.md
Browse files Browse the repository at this point in the history
Modify TwoStateToolbarAction description to correspond to boolean rather than state.
  • Loading branch information
jimorc committed Oct 28, 2024
1 parent 75b5862 commit e381ca0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ closed, and the left panel close icon when the panel is open.
```go
action := NewTwoStateToolBar(theme.MediaPlayIcon(),
theme.MediaPauseIcon,
func(state TwoStateState) {
// do something with `state`
func(on bool) {
// Do something with state. For example, if on is true, start playback and display
// the pause icon.
})
```

Expand Down

0 comments on commit e381ca0

Please sign in to comment.