From 36b4b3695ba35defaa77b9564e3d7c00e2d793d1 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sun, 22 Oct 2023 09:32:04 +1100 Subject: [PATCH] Initial menu item bitmap support --- v3/examples/menu/README.md | 6 +++- v3/examples/menu/icon.png | Bin 0 -> 323 bytes v3/examples/menu/main.go | 5 ++- v3/pkg/application/linux_cgo.go | 7 ++++ v3/pkg/application/menu_darwin.go | 3 ++ v3/pkg/application/menu_windows.go | 3 ++ v3/pkg/application/menuitem.go | 10 ++++++ v3/pkg/application/menuitem_darwin.go | 27 +++++++++----- v3/pkg/application/menuitem_linux.go | 7 ++++ v3/pkg/application/menuitem_windows.go | 14 ++++++++ v3/pkg/application/popupmenu_windows.go | 6 ++++ v3/pkg/w32/icon.go | 46 ++++++++++++++++++++++++ v3/pkg/w32/user32.go | 17 +++++++++ 13 files changed, 140 insertions(+), 11 deletions(-) create mode 100644 v3/examples/menu/icon.png diff --git a/v3/examples/menu/README.md b/v3/examples/menu/README.md index 627bfdb9..cc926df7 100644 --- a/v3/examples/menu/README.md +++ b/v3/examples/menu/README.md @@ -20,4 +20,8 @@ go run . # Known Issues -- [Resize cursor still visible when not resizable](https://github.com/orgs/wailsapp/projects/6/views/1?pane=issue&itemId=40962163) \ No newline at end of file +- [Resize cursor still visible when not resizable](https://github.com/orgs/wailsapp/projects/6/views/1?pane=issue&itemId=40962163) + +--- + +Icon attribution: [Click icons created by kusumapotter - Flaticon](https://www.flaticon.com/free-icons/click) \ No newline at end of file diff --git a/v3/examples/menu/icon.png b/v3/examples/menu/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..e934687ca6c2f1f72c46e28e6262afb78d538d37 GIT binary patch literal 323 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s7I14-?iy0W$6G519>fs&R z7#J8NOI#yLg7ec#$`gxH8OqDc^)mCai<1)zQuXqS(r3T3kz!zAxZvsH7-G@8_0nE1 z=0E|~2j?}GbO;>OQcx7wXcVzj^tDLY%g-_UoOU&|#>OeG?X~yyI(Y2Hilcr9bgW-1 zJvngT%*!q~#+hp^0J>E{v;Mf6i2I?kFr?%uQ^w6LNl`^-lXL;k!wM-n>xp2!|e&HJ1fImh;~SbqH% zZQi(zoi#tZ@4KuQOyk{oOH{8w^rx0^DqF6NTY$}X->C+_*=>D3$d!tJk4T^VN80{G XvD9C_CaG`+1_lOCS3j3^P6