replace shuffle icon
This commit is contained in:
+5
-15
File diff suppressed because one or more lines are too long
+1
-1
@@ -9,7 +9,6 @@ fyne bundle -append -prefix Res icons/publicdomain/heart-outline.svg >> bundled.
|
|||||||
fyne bundle -append -prefix Res icons/publicdomain/musicnotes.svg >> bundled.go
|
fyne bundle -append -prefix Res icons/publicdomain/musicnotes.svg >> bundled.go
|
||||||
fyne bundle -append -prefix Res icons/publicdomain/people.svg >> bundled.go
|
fyne bundle -append -prefix Res icons/publicdomain/people.svg >> bundled.go
|
||||||
fyne bundle -append -prefix Res icons/publicdomain/playlist.svg >> bundled.go
|
fyne bundle -append -prefix Res icons/publicdomain/playlist.svg >> bundled.go
|
||||||
fyne bundle -append -prefix Res icons/publicdomain/shuffle.svg >> bundled.go
|
|
||||||
fyne bundle -append -prefix Res icons/publicdomain/shuffle-invert.svg >> bundled.go
|
fyne bundle -append -prefix Res icons/publicdomain/shuffle-invert.svg >> bundled.go
|
||||||
fyne bundle -append -prefix Res icons/publicdomain/star-outline.svg >> bundled.go
|
fyne bundle -append -prefix Res icons/publicdomain/star-outline.svg >> bundled.go
|
||||||
fyne bundle -append -prefix Res icons/publicdomain/star-filled.svg >> bundled.go
|
fyne bundle -append -prefix Res icons/publicdomain/star-filled.svg >> bundled.go
|
||||||
@@ -19,6 +18,7 @@ fyne bundle -append -prefix Res icons/publicdomain/list.svg >> bundled.go
|
|||||||
fyne bundle -append -prefix Res icons/publicdomain/filter.svg >> bundled.go
|
fyne bundle -append -prefix Res icons/publicdomain/filter.svg >> bundled.go
|
||||||
fyne bundle -append -prefix Res icons/remix_design/repeat.svg >> bundled.go
|
fyne bundle -append -prefix Res icons/remix_design/repeat.svg >> bundled.go
|
||||||
fyne bundle -append -prefix Res icons/remix_design/repeatone.svg >> bundled.go
|
fyne bundle -append -prefix Res icons/remix_design/repeatone.svg >> bundled.go
|
||||||
|
fyne bundle -append -prefix Res icons/remix_design/shuffle.svg >> bundled.go
|
||||||
|
|
||||||
fyne bundle -append -prefix Res themes/default.toml >> bundled.go
|
fyne bundle -append -prefix Res themes/default.toml >> bundled.go
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<svg width="800px" height="800px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<g>
|
||||||
|
<path fill="none" d="M0 0h24v24H0z"/>
|
||||||
|
<path d="M18 17.883V16l5 3-5 3v-2.09a9 9 0 0 1-6.997-5.365L11 14.54l-.003.006A9 9 0 0 1 2.725 20H2v-2h.725a7 7 0 0 0 6.434-4.243L9.912 12l-.753-1.757A7 7 0 0 0 2.725 6H2V4h.725a9 9 0 0 1 8.272 5.455L11 9.46l.003-.006A9 9 0 0 1 18 4.09V2l5 3-5 3V6.117a7 7 0 0 0-5.159 4.126L12.088 12l.753 1.757A7 7 0 0 0 18 17.883z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 524 B |
@@ -215,7 +215,7 @@ func NewAlbumPageHeader(page *AlbumPage) *AlbumPageHeader {
|
|||||||
playButton := widget.NewButtonWithIcon("Play", theme.MediaPlayIcon(), func() {
|
playButton := widget.NewButtonWithIcon("Play", theme.MediaPlayIcon(), func() {
|
||||||
go a.page.pm.PlayAlbum(a.page.albumID, 0, false)
|
go a.page.pm.PlayAlbum(a.page.albumID, 0, false)
|
||||||
})
|
})
|
||||||
shuffleBtn := widget.NewButtonWithIcon(" Shuffle", myTheme.ShuffleIcon, func() {
|
shuffleBtn := widget.NewButtonWithIcon("Shuffle", myTheme.ShuffleIcon, func() {
|
||||||
a.page.pm.LoadTracks(a.page.tracklist.GetTracks(), false, true)
|
a.page.pm.LoadTracks(a.page.tracklist.GetTracks(), false, true)
|
||||||
a.page.pm.PlayFromBeginning()
|
a.page.pm.PlayFromBeginning()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ func NewArtistPageHeader(page *ArtistPage) *ArtistPageHeader {
|
|||||||
a.playBtn = widget.NewButtonWithIcon("Play Discography", theme.MediaPlayIcon(), func() {
|
a.playBtn = widget.NewButtonWithIcon("Play Discography", theme.MediaPlayIcon(), func() {
|
||||||
go a.artistPage.contr.PlayArtistDiscography(a.artistID, false /*shuffle*/)
|
go a.artistPage.contr.PlayArtistDiscography(a.artistID, false /*shuffle*/)
|
||||||
})
|
})
|
||||||
a.playRadioBtn = widget.NewButtonWithIcon(" Play Artist Radio", myTheme.ShuffleIcon, a.artistPage.playArtistRadio)
|
a.playRadioBtn = widget.NewButtonWithIcon("Play Artist Radio", myTheme.ShuffleIcon, a.artistPage.playArtistRadio)
|
||||||
a.biographyDisp.Wrapping = fyne.TextWrapWord
|
a.biographyDisp.Wrapping = fyne.TextWrapWord
|
||||||
a.biographyDisp.Truncation = fyne.TextTruncateEllipsis
|
a.biographyDisp.Truncation = fyne.TextTruncateEllipsis
|
||||||
a.ExtendBaseWidget(a)
|
a.ExtendBaseWidget(a)
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ func (g *genrePageAdapter) Route() controller.Route {
|
|||||||
|
|
||||||
func (g *genrePageAdapter) ActionButton() *widget.Button {
|
func (g *genrePageAdapter) ActionButton() *widget.Button {
|
||||||
fn := func() { go g.pm.PlayRandomSongs(g.genre) }
|
fn := func() { go g.pm.PlayRandomSongs(g.genre) }
|
||||||
return widget.NewButtonWithIcon(" Play random", myTheme.ShuffleIcon, fn)
|
return widget.NewButtonWithIcon("Play random", myTheme.ShuffleIcon, fn)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *genrePageAdapter) Iter(sortOrder string, filter mediaprovider.AlbumFilter) widgets.GridViewIterator {
|
func (a *genrePageAdapter) Iter(sortOrder string, filter mediaprovider.AlbumFilter) widgets.GridViewIterator {
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ func NewPlaylistPageHeader(page *PlaylistPage) *PlaylistPageHeader {
|
|||||||
a.page.pm.PlayFromBeginning()
|
a.page.pm.PlayFromBeginning()
|
||||||
})
|
})
|
||||||
// TODO: find way to pad shuffle svg rather than using a space in the label string
|
// TODO: find way to pad shuffle svg rather than using a space in the label string
|
||||||
shuffleBtn := widget.NewButtonWithIcon(" Shuffle", myTheme.ShuffleIcon, func() {
|
shuffleBtn := widget.NewButtonWithIcon("Shuffle", myTheme.ShuffleIcon, func() {
|
||||||
a.page.pm.LoadTracks(a.page.tracks, false /*append*/, true /*shuffle*/)
|
a.page.pm.LoadTracks(a.page.tracks, false /*append*/, true /*shuffle*/)
|
||||||
a.page.pm.PlayFromBeginning()
|
a.page.pm.PlayFromBeginning()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user