Skip to content

Add a Vencord Icon with graphics for each zooming level#62

Closed
Jaegerwald wants to merge 4 commits into
Vencord:mainfrom
Jaegerwald:main
Closed

Add a Vencord Icon with graphics for each zooming level#62
Jaegerwald wants to merge 4 commits into
Vencord:mainfrom
Jaegerwald:main

Conversation

@Jaegerwald
Copy link
Copy Markdown

This .ico file has multiple version of the ico, for better display in the taskbar.

@Vendicated
Copy link
Copy Markdown
Member

Vendicated commented May 14, 2023

I'm fairly certain this icon is not what's actually shown in the taskbar, it's set via code:

Installer/gui.go

Lines 72 to 78 in 15f3cd7

icon, _, err := image.Decode(bytes.NewReader(iconBytes))
if err != nil {
fmt.Println("Failed to load application icon", err)
fmt.Println(iconBytes, len(iconBytes))
} else {
win.SetIcon([]image.Image{icon})
}

this uses icon.png

Installer/gui.go

Lines 51 to 52 in 15f3cd7

//go:embed winres/icon.png
var iconBytes []byte

@Vendicated
Copy link
Copy Markdown
Member

in any case, SetIcon() takes a list of pngs, so you could just make multiple pngs for the different sizes and include all of them

@Jaegerwald
Copy link
Copy Markdown
Author

yea sure

@Jaegerwald Jaegerwald closed this May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants