Fix typo on NewTappableIcon function

This commit is contained in:
Michael Manganiello
2023-06-12 18:45:21 -07:00
committed by Drew Weymouth
parent c19edccf80
commit 39b17abd7d
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ func NewGenreFilterSubsection(onChanged func([]string), initialSelectedGenres []
)
g.filterText = widget.NewEntry()
g.filterText.SetPlaceHolder("Filter genres")
i := NewTappbaleIcon(theme.ContentClearIcon())
i := NewTappableIcon(theme.ContentClearIcon())
i.NoPointerCursor = true
i.OnTapped = func() { g.filterText.SetText("") }
g.filterText.ActionItem = i
+1 -1
View File
@@ -121,7 +121,7 @@ type VolumeControl struct {
func NewVolumeControl(initialVol int) *VolumeControl {
v := &VolumeControl{}
v.ExtendBaseWidget(v)
v.icon = NewTappbaleIcon(theme.VolumeUpIcon())
v.icon = NewTappableIcon(theme.VolumeUpIcon())
v.icon.OnTapped = v.toggleMute
v.slider = NewVolumeSlider(100)
v.lastVol = initialVol
+1 -1
View File
@@ -15,7 +15,7 @@ type TappableIcon struct {
OnTapped func()
}
func NewTappbaleIcon(res fyne.Resource) *TappableIcon {
func NewTappableIcon(res fyne.Resource) *TappableIcon {
icon := &TappableIcon{}
icon.ExtendBaseWidget(icon)
icon.SetResource(res)
+1 -1
View File
@@ -677,7 +677,7 @@ func NewTrackRow(tracklist *Tracklist, playingIcon fyne.CanvasObject) *TrackRow
t.album.OnTapped = func() { tracklist.onAlbumTapped(t.albumID) }
t.dur = newTrailingAlignRichText()
t.year = newTrailingAlignRichText()
favorite := NewTappbaleIcon(myTheme.NotFavoriteIcon)
favorite := NewTappableIcon(myTheme.NotFavoriteIcon)
favorite.OnTapped = t.toggleFavorited
t.favorite = container.NewCenter(favorite)
t.rating = NewStarRating()