add filter icon
This commit is contained in:
@@ -140,6 +140,11 @@ var ResListSvg = &fyne.StaticResource{
|
|||||||
StaticContent: []byte(
|
StaticContent: []byte(
|
||||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r<svg width=\"800px\" height=\"800px\" viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\" >\r<g id=\"grid\">\r\n\t<rect x=\"4\" y=\"6\" width=\"40\" height=\"8\"/>\r\n\t<rect x=\"4\" y=\"20\" width=\"40\" height=\"8\"/>\r\n\t<rect x=\"4\" y=\"34\" width=\"40\" height=\"8\"/>\r\n</g>\r\n</svg>"),
|
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r<svg width=\"800px\" height=\"800px\" viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\" >\r<g id=\"grid\">\r\n\t<rect x=\"4\" y=\"6\" width=\"40\" height=\"8\"/>\r\n\t<rect x=\"4\" y=\"20\" width=\"40\" height=\"8\"/>\r\n\t<rect x=\"4\" y=\"34\" width=\"40\" height=\"8\"/>\r\n</g>\r\n</svg>"),
|
||||||
}
|
}
|
||||||
|
var ResFilterSvg = &fyne.StaticResource{
|
||||||
|
StaticName: "filter.svg",
|
||||||
|
StaticContent: []byte(
|
||||||
|
"<svg fill=\"#000000\" version=\"1.1\" id=\"Capa_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" \r\n\t width=\"800px\" height=\"800px\" viewBox=\"0 0 971.986 971.986\"\r\n\t xml:space=\"preserve\">\r\n<g>\r\n\t<path d=\"M370.216,459.3c10.2,11.1,15.8,25.6,15.8,40.6v442c0,26.601,32.1,40.101,51.1,21.4l123.3-141.3\r\n\t\tc16.5-19.8,25.6-29.601,25.6-49.2V500c0-15,5.7-29.5,15.8-40.601L955.615,75.5c26.5-28.8,6.101-75.5-33.1-75.5h-873\r\n\t\tc-39.2,0-59.7,46.6-33.1,75.5L370.216,459.3z\"/>\r\n</g>\r\n</svg>\r\n"),
|
||||||
|
}
|
||||||
var ResLICENSE = &fyne.StaticResource{
|
var ResLICENSE = &fyne.StaticResource{
|
||||||
StaticName: "LICENSE",
|
StaticName: "LICENSE",
|
||||||
StaticContent: []byte(
|
StaticContent: []byte(
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ fyne bundle -append -prefix Res icons/publicdomain/star-outline.svg >> bundled.g
|
|||||||
fyne bundle -append -prefix Res icons/publicdomain/star-filled.svg >> bundled.go
|
fyne bundle -append -prefix Res icons/publicdomain/star-filled.svg >> bundled.go
|
||||||
fyne bundle -append -prefix Res icons/publicdomain/grid.svg >> bundled.go
|
fyne bundle -append -prefix Res icons/publicdomain/grid.svg >> bundled.go
|
||||||
fyne bundle -append -prefix Res icons/publicdomain/list.svg >> bundled.go
|
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 ../LICENSE >> bundled.go
|
fyne bundle -append -prefix Res ../LICENSE >> bundled.go
|
||||||
fyne bundle -append -prefix Res licenses/BSDLICENSE >> bundled.go
|
fyne bundle -append -prefix Res licenses/BSDLICENSE >> bundled.go
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<svg fill="#000000" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
width="800px" height="800px" viewBox="0 0 971.986 971.986"
|
||||||
|
xml:space="preserve">
|
||||||
|
<g>
|
||||||
|
<path d="M370.216,459.3c10.2,11.1,15.8,25.6,15.8,40.6v442c0,26.601,32.1,40.101,51.1,21.4l123.3-141.3
|
||||||
|
c16.5-19.8,25.6-29.601,25.6-49.2V500c0-15,5.7-29.5,15.8-40.601L955.615,75.5c26.5-28.8,6.101-75.5-33.1-75.5h-873
|
||||||
|
c-39.2,0-59.7,46.6-33.1,75.5L370.216,459.3z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 500 B |
@@ -121,6 +121,7 @@ var (
|
|||||||
PlaylistIcon fyne.Resource
|
PlaylistIcon fyne.Resource
|
||||||
ShuffleIcon fyne.Resource
|
ShuffleIcon fyne.Resource
|
||||||
TracksIcon fyne.Resource
|
TracksIcon fyne.Resource
|
||||||
|
FilterIcon fyne.Resource = theme.NewThemedResource(res.ResFilterSvg)
|
||||||
)
|
)
|
||||||
|
|
||||||
// MUST be called at startup!
|
// MUST be called at startup!
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ func NewAlbumFilterButton(filter *backend.AlbumFilter) *AlbumFilterButton {
|
|||||||
a := &AlbumFilterButton{
|
a := &AlbumFilterButton{
|
||||||
filter: filter,
|
filter: filter,
|
||||||
Button: widget.Button{
|
Button: widget.Button{
|
||||||
Icon: theme.AlbumIcon,
|
Icon: theme.FilterIcon,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
a.OnTapped = a.showFilterDialog
|
a.OnTapped = a.showFilterDialog
|
||||||
|
|||||||
Reference in New Issue
Block a user