diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-02-01 13:31:07 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-02-01 13:31:07 +0100 |
commit | 100b93cda89c41d6933a3cb47cd3eff05516b822 (patch) | |
tree | 7c41888d760e3dfa247667dfbb5837e9ad7fde1e | |
parent | e9afb0fdeb25eb760e2af17bfd5b904845955c2c (diff) | |
download | engarde-importer-100b93cda89c41d6933a3cb47cd3eff05516b822.tar.gz engarde-importer-100b93cda89c41d6933a3cb47cd3eff05516b822.tar.bz2 engarde-importer-100b93cda89c41d6933a3cb47cd3eff05516b822.zip |
Icon and better windows data
Diffstat (limited to '')
-rw-r--r-- | gui.go | 13 | ||||
-rw-r--r-- | monitor.ico | bin | 0 -> 34494 bytes | |||
-rw-r--r-- | monitor_48.png | bin | 0 -> 2806 bytes | |||
-rw-r--r-- | resource_amd64.syso | bin | 0 -> 37642 bytes | |||
-rw-r--r-- | rsrc_windows_amd64.syso | bin | 1844 -> 0 bytes | |||
-rw-r--r-- | versioninfo.json | 39 |
6 files changed, 51 insertions, 1 deletions
@@ -1,13 +1,20 @@ package main import ( + "bytes" + _ "embed" + "image" + _ "image/png" "time" g "github.com/AllenDang/giu" "github.com/AllenDang/imgui-go" ) -//go:generate rsrc -manifest engarde-importer.exe.manifest +//go:generate goversioninfo -64 -o resource_amd64.syso + +//go:embed monitor_48.png +var icon []byte var ( guiCfg EngardeConfig @@ -89,5 +96,9 @@ func loop(w *g.MasterWindow) func() { func gui() { guiCfg.Date = time.Now() w := g.NewMasterWindow("Engarde Importer", 400, 200, 0) + if img, _, err := image.Decode(bytes.NewReader(icon)); err != nil { + w.SetIcon([]image.Image{img}) + } + w.Run(loop(w)) } diff --git a/monitor.ico b/monitor.ico Binary files differnew file mode 100644 index 0000000..9301f41 --- /dev/null +++ b/monitor.ico diff --git a/monitor_48.png b/monitor_48.png Binary files differnew file mode 100644 index 0000000..fe66aac --- /dev/null +++ b/monitor_48.png diff --git a/resource_amd64.syso b/resource_amd64.syso Binary files differnew file mode 100644 index 0000000..ec4a1c6 --- /dev/null +++ b/resource_amd64.syso diff --git a/rsrc_windows_amd64.syso b/rsrc_windows_amd64.syso Binary files differdeleted file mode 100644 index 90f5dc2..0000000 --- a/rsrc_windows_amd64.syso +++ /dev/null diff --git a/versioninfo.json b/versioninfo.json new file mode 100644 index 0000000..a2b90ab --- /dev/null +++ b/versioninfo.json @@ -0,0 +1,39 @@ +{ + "FixedFileInfo": { + "FileVersion": { + "Major": 0, + "Minor": 5, + "Patch": 0, + "Build": 0 + }, + "ProductVersion": { + "Major": 0, + "Minor": 5, + "Patch": 0, + "Build": 0 + }, + "FileFlagsMask": "3f", + "FileFlags ": "00", + "FileOS": "040004", + "FileType": "01", + "FileSubType": "00" + }, + "StringFileInfo": { + "CompanyName": "René Neumann", + "FileDescription": "Importer for EnGarde (from Ophardt)", + "FileVersion": "v0.5.0.0", + "InternalName": "engarde-importer.exe", + "LegalCopyright": "Copyright (c) 2022 René Neumann", + "OriginalFilename": "engarde-importer.exe", + "ProductName": "engarde-importer", + "ProductVersion": "v0.5.0.0" + }, + "VarFileInfo": { + "Translation": { + "LangID": "0407", + "CharsetID": "04B0" + } + }, + "IconPath": "monitor.ico", + "ManifestPath": "engarde-importer.exe.manifest" +} |