Added icon.

This commit is contained in:
Leonid Nikitin 2024-01-23 21:33:30 +06:00
parent adf9bc9c27
commit 846986279c
Signed by: kor-elf
GPG Key ID: 7DE8F80C5CEC2C0D
2 changed files with 4 additions and 0 deletions

BIN
src/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -19,6 +19,10 @@ import (
func main() { func main() {
a := app.New() a := app.New()
iconResource, err := fyne.LoadResourceFromPath("icon.png")
if err == nil {
a.SetIcon(iconResource)
}
w := a.NewWindow("GUI FFMpeg!") w := a.NewWindow("GUI FFMpeg!")
w.Resize(fyne.Size{Width: 800, Height: 600}) w.Resize(fyne.Size{Width: 800, Height: 600})
w.CenterOnScreen() w.CenterOnScreen()