Fix #132: provide standard sized icons

This commit is contained in:
Drew Weymouth
2023-04-18 17:56:06 -07:00
parent cf41e8ef18
commit 3fbf53279f
10 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
icon_path = ./res/appicon-500.png icon_path = ./res/appicon-512.png
icon_path_mac = ./res/appicon-macos.png icon_path_mac = ./res/appicon-macos.png
app_name = Supersonic app_name = Supersonic
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

+3 -3
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
fyne bundle -package res -prefix Res appicon-250.png > bundled.go fyne bundle -package res -prefix Res appicon-256.png > bundled.go
fyne bundle -append -prefix Res albumplaceholder.png >> bundled.go fyne bundle -append -prefix Res albumplaceholder.png >> bundled.go
fyne bundle -append -prefix Res icons/freepik/disc.png >> bundled.go fyne bundle -append -prefix Res icons/freepik/disc.png >> bundled.go
fyne bundle -append -prefix Res icons/freepik/disc-invert.png >> bundled.go fyne bundle -append -prefix Res icons/freepik/disc-invert.png >> bundled.go
+1 -1
View File
@@ -52,7 +52,7 @@ func (a *AboutDialog) MinSize() fyne.Size {
} }
func (a *AboutDialog) buildMainTabContainer(version string) *fyne.Container { func (a *AboutDialog) buildMainTabContainer(version string) *fyne.Container {
iconImage := canvas.NewImageFromResource(res.ResAppicon250Png) iconImage := canvas.NewImageFromResource(res.ResAppicon256Png)
iconImage.FillMode = canvas.ImageFillContain iconImage.FillMode = canvas.ImageFillContain
iconImage.SetMinSize(fyne.NewSize(64, 64)) iconImage.SetMinSize(fyne.NewSize(64, 64))
title := widget.NewRichTextWithText("Supersonic") title := widget.NewRichTextWithText("Supersonic")
+1 -1
View File
@@ -144,7 +144,7 @@ func (m *MainWindow) SetupSystemTrayMenu(appName string, fyneApp fyne.App) {
fyne.NewMenuItem("Hide", m.Window.Hide), fyne.NewMenuItem("Hide", m.Window.Hide),
) )
desk.SetSystemTrayMenu(menu) desk.SetSystemTrayMenu(menu)
desk.SetSystemTrayIcon(res.ResAppicon250Png) desk.SetSystemTrayIcon(res.ResAppicon256Png)
m.haveSystemTray = true m.haveSystemTray = true
} }
} }