guangwu
150dac9ead
chore: slice replace loop ( #2757 )
...
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-07-13 23:13:47 +10:00
stffabi
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 Anthony
b84a2e5255
Windows tray menus ( #2181 )
...
* Add example
* Add windows systray
* Add gitkeep
* use windows.GUID
2022-12-06 20:55:56 +11:00
Travis McLane
d2339de5ff
chore: remove unreachable code ( #2182 )
...
pkg/menu/styledlabel.go:255:2: unreachable code
2022-12-06 08:27:48 +11:00
Lea Anthony
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
Lea Anthony
f40899821f
Support ToolTips
2021-01-23 16:14:48 +11:00
Lea Anthony
7ac8cc6b8b
Add Menu.Merge() to combine 2 menus
2021-01-15 11:53:55 +11:00
Lea Anthony
e65118e962
Fixed and refactored context menu support
2021-01-13 22:51:44 +11:00
Lea Anthony
a86fbbb440
Removal of menu IDs. WARNING: context menus are currently broken
2021-01-13 21:14:44 +11:00
Lea Anthony
1921862b53
Partially introduce context menu changes back
2021-01-12 21:20:08 +11:00
Lea Anthony
db6dde3e50
[WIP] Support tray in menu manager
2021-01-12 15:55:28 +11:00
Lea Anthony
b4b7c9d306
Implemented MenuItem.Remove() to remove from the menu structures
2021-01-11 11:57:49 +11:00
Lea Anthony
8ee8c9b07c
[WIP] New menu processor
2021-01-10 21:31:13 +11:00
Lea Anthony
fbee9ba240
Support UpdateContextMenus. Submenus are now *menu.Menu. Tidy up++
2021-01-08 06:28:51 +11:00
Lea Anthony
a55fc4d0e9
Refactor TrayOptions to Tray. Add ID.
2021-01-04 15:58:28 +11:00
Lea Anthony
5d41aad539
Misc lint fixes
2021-01-03 21:31:19 +11:00
Lea Anthony
25f464c177
Refactor accelerator to keys package
2020-12-26 14:58:22 +11:00
Lea Anthony
3b0f852f37
Updated accelerators API
2020-12-26 06:11:22 +11:00
Lea Anthony
a85c8ba894
Remove "WithAccellerator" methods. Now mandatory in base methods
2020-12-26 06:01:10 +11:00
Lea Anthony
f0c932713b
Support changing tray icon at runtime
...
Support both icon & text in tray
2020-12-24 10:05:55 +11:00
Lea Anthony
a0774cf71c
Support loading multiple tray icons
2020-12-23 06:55:45 +11:00
Lea Anthony
16b872352d
Support Text label tray
2020-12-22 18:08:38 +11:00
Lea Anthony
a8995c5377
Support context menu data
...
Support StartHidden
2020-12-18 15:50:25 +11:00
Lea Anthony
7e42052da0
InsertBefore/InsertAfter supported
2020-12-05 14:14:46 +11:00
Lea Anthony
e8bb950e06
Updates for dynamic menus
...
Cleanup of logging
2020-12-05 07:52:59 +11:00
Lea Anthony
a081c1e498
Support for dynamic menus.
...
Fixed bug in accelerator handling
2020-12-04 15:04:51 +11:00
Lea Anthony
5c39467879
Support more accelerator keys
2020-11-29 14:18:53 +11:00
Lea Anthony
fb1d4c6325
Support for Accelerators!
2020-11-28 20:57:07 +11:00
Lea Anthony
a0fe2f1e13
UTF-8 test
2020-11-27 22:22:30 +11:00
Lea Anthony
dbe6000632
Support for radio menu items
2020-11-27 22:07:44 +11:00
Lea Anthony
4fd3516f41
Support Hidden/Disabled. Normal->Text
2020-11-24 20:12:10 +11:00