mirror of
https://github.com/gen2brain/cbconvert
synced 2025-10-14 02:28:51 +02:00
Remove icon
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 1.9 KiB |
@@ -20,9 +20,6 @@ import (
|
|||||||
|
|
||||||
//go:generate rsrc --ico dist/windows/icon.ico --arch amd64 -o main_windows_amd64.syso
|
//go:generate rsrc --ico dist/windows/icon.ico --arch amd64 -o main_windows_amd64.syso
|
||||||
|
|
||||||
//go:embed assets/icon.png
|
|
||||||
var appIcon []byte
|
|
||||||
|
|
||||||
//go:embed assets/logo.png
|
//go:embed assets/logo.png
|
||||||
var appLogo []byte
|
var appLogo []byte
|
||||||
|
|
||||||
@@ -70,13 +67,10 @@ func main() {
|
|||||||
iup.SetGlobal("UTF8MODE", "YES")
|
iup.SetGlobal("UTF8MODE", "YES")
|
||||||
iup.SetGlobal("UTF8MODE_FILE", "YES")
|
iup.SetGlobal("UTF8MODE_FILE", "YES")
|
||||||
|
|
||||||
img, _ := png.Decode(bytes.NewReader(appIcon))
|
img, _ := png.Decode(bytes.NewReader(appLogo))
|
||||||
iup.ImageFromImage(img).SetHandle("icon")
|
iup.ImageFromImage(img).SetHandle("logo")
|
||||||
|
|
||||||
logo, _ := png.Decode(bytes.NewReader(appLogo))
|
dlg := iup.Dialog(layout()).SetAttributes(fmt.Sprintf(`TITLE="CBconvert %s", ICON=logo`, appVersion)).SetHandle("dlg")
|
||||||
iup.ImageFromImage(logo).SetHandle("logo")
|
|
||||||
|
|
||||||
dlg := iup.Dialog(layout()).SetAttributes(fmt.Sprintf(`TITLE="CBconvert %s", ICON=icon`, appVersion)).SetHandle("dlg")
|
|
||||||
|
|
||||||
dlg.SetCallback("POSTMESSAGE_CB", iup.PostMessageFunc(func(ih iup.Ihandle, s string, i int, p any) int {
|
dlg.SetCallback("POSTMESSAGE_CB", iup.PostMessageFunc(func(ih iup.Ihandle, s string, i int, p any) int {
|
||||||
sp := strings.Split(s, ": ")
|
sp := strings.Split(s, ": ")
|
||||||
|
Reference in New Issue
Block a user