Fix typo on NewTappableIcon function
This commit is contained in:
committed by
Drew Weymouth
parent
c19edccf80
commit
39b17abd7d
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user