Skip to content
This repository has been archived by the owner on Sep 12, 2021. It is now read-only.

Commit

Permalink
Use 512px icon for bundling and drop other sizes
Browse files Browse the repository at this point in the history
Before this, a 256px icon was also bundled which leads to larger sizes.
  • Loading branch information
Jacalz committed Jun 28, 2020
1 parent 6c6953e commit 2c517f4
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ GOBIN ?= ~/go/bin/

bundle:
# Bundle the correct logo into sparta/src/bundled/bundled.go
${GOBIN}fyne bundle -package assets -name AppIcon internal/assets/icon-256.png > internal/assets/bundled.go
${GOBIN}fyne bundle -package assets -name AppIcon ${icon} > internal/assets/bundled.go

check:
# Check the whole codebase for misspellings.
Expand Down
11 changes: 3 additions & 8 deletions internal/assets/bundled.go

Large diffs are not rendered by default.

Binary file removed internal/assets/icon-1024.png
Binary file not shown.
Binary file removed internal/assets/icon-128.png
Binary file not shown.
Binary file removed internal/assets/icon-256.png
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion internal/gui/about.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const version string = "v0.7.1"

// AboutView displays the logo and a version link for application information.
func aboutView() fyne.CanvasObject {
logo := canvas.NewImageFromResource(assets.AppIcon512)
logo := canvas.NewImageFromResource(assets.AppIcon)
logo.SetMinSize(fyne.NewSize(300, 300))

return fyne.NewContainerWithLayout(layout.NewVBoxLayout(),
Expand Down
2 changes: 1 addition & 1 deletion internal/gui/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func Init() {
a := app.NewWithID("com.github.jacalz.sparta")

// Set the application icon for our program.
a.SetIcon(assets.AppIcon256)
a.SetIcon(assets.AppIcon)

// Create the window for our user interface.
w := a.NewWindow("Sparta")
Expand Down

0 comments on commit 2c517f4

Please sign in to comment.