52 Commits
Author SHA1 Message Date
Lea Anthony 9ce0ddb4f8 [chore] lint fixes 2023-11-12 12:30:49 +11:00
guangwuandGitHub 150dac9ead chore: slice replace loop (#2757)
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-07-13 23:13:47 +10:00
stffabiandGitHub 0bf41090b0 [v2, darwin] Add some missing default shortcuts (#2586)
* [v2, darwin] Add "Hide, Hide Others, Show All“ to appmenu

This also includes shortcuts support for those commands.
Arrange the menu items in the well known MacOS order.

* [v2, darwin] Add Window menu with well known shortcuts Minimize, Full-Screen and Zoom.
2023-04-20 12:38:32 +02:00
Lea AnthonyandGitHub b84a2e5255 Windows tray menus (#2181)
* Add example

* Add windows systray

* Add gitkeep

* use windows.GUID
2022-12-06 20:55:56 +11:00
Travis McLaneandGitHub d2339de5ff chore: remove unreachable code (#2182)
pkg/menu/styledlabel.go:255:2: unreachable code
2022-12-06 08:27:48 +11:00
Lea AnthonyandGitHub b93cdcd942 Releasetest/release workflow (#1869)
* Test release workflow

* Update release.yml

* Update release.yml

* add linux deps

* Update release.yml

* Update release.yml

* Update release.yml

* Update release.yml

* Update release.yml

* Update release.yml

* Update release.yml

* Update release.yml

* Update release.yml

* Fix: Misc tests

* Fix: Misc tests + linux build tags

* Fix: Bindings tests + move templates to pkg. Add json schema for templates

* Fix: template tests

* Add tests to release workflow. Test for go 1.18 + go 1.19
Fix: ignore .m files for non darwin builds. Fix watcher test. Fix warning in clilogger.

* Fix release pipeline

* Matrix for tests

* Rename templates to make tests work

* Update template test

* Debug template test

* Debug template test

* Debug template test

* Fix gitignore

* Update release.yml
2022-09-18 08:55:21 +10:00
Lea Anthony ebf4cf13f2 Feature: Add menu helpers 2022-04-09 20:36:48 +10:00
Eng Zer Jun ef8d7d2fd7 refactor: move from io/ioutil to io and os packages
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-11-25 12:15:43 +08:00
Lea Anthony 489b9b358b [mac] menu support 2021-10-30 09:51:46 +11:00
Lea Anthony 616ecabb41 [mac] migrated colour code 2021-10-14 20:38:11 +11:00
Lea Anthony ae29a3b1cd [v2] Misc template updates 2021-09-19 17:14:06 +10:00
Lea Anthony 817952f3d0 [windows] Misc updates for feature parity 2021-09-19 17:14:06 +10:00
Lea Anthony 72b1e58218 [windows-x] Deprecate Super key for now 2021-07-25 20:19:08 +10:00
Lea Anthony fee14babbc [windows] Basic accelerator support 2021-07-18 12:32:14 +10:00
Lea Anthony 4c2804eac9 [v2] Create default windows app menu 2021-07-04 13:59:21 +10:00
Lea Anthony 1b377fb575 Support enter as alias for return 2021-04-03 16:52:54 +11:00
Lea Anthony 39bfa5d910 Support disabling tray menu. Fix font sizing. Tooltip in tray menu support. 2021-03-18 20:54:53 +11:00
Lea Anthony a962ae6f63 Support rich text in Tray labels 2021-03-17 23:30:08 +11:00
Lea Anthony c7dee158ba tray menu Icon->Image. Support template images. 2021-03-17 22:24:09 +11:00
Lea Anthony 81e83fdf18 Ensure modifiers are lowercase when parsing 2021-03-07 16:21:30 +11:00
Lea Anthony 18adac20d4 Tray menu open/close events 2021-03-06 00:25:34 +11:00
Lea Anthony e124f0a220 Support Alternative menu items 2021-03-04 06:07:45 +11:00
Lea Anthony 552c6b8711 fix: modifiers 2021-02-23 18:57:59 +11:00
Lea Anthony d4191e7d1b Support parsing keyboard shortcuts 2021-02-20 21:32:32 +11:00
Lea Anthony d8ad250608 Template Image support 2021-02-19 05:25:23 +11:00