Commit graph

57 commits

Author SHA1 Message Date
Alex Janka 80f8bcfce4 bump dependency versions 2023-09-10 10:28:15 +10:00
github-actions[bot] 4a41e5231e
Apply Version Updates From Current Changes (#117)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-09-01 20:03:58 +03:00
github-actions[bot] 0f7006bd41
Apply Version Updates From Current Changes (#114)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-09-01 15:17:56 +03:00
renovate[bot] dc94c5fee0
fix(deps): update rust crate keyboard-types to 0.7 (#104)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-01 15:14:15 +03:00
github-actions[bot] 9c4d6bb14e
Apply Version Updates From Current Changes (#110)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-08-31 02:38:08 +03:00
github-actions[bot] bc4c86bfbb
Apply Version Updates From Current Changes (#106)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-08-29 20:08:05 +03:00
github-actions[bot] 93a93a699e
apply version updates (#103)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-08-19 18:01:46 +03:00
github-actions[bot] a9f16c8519
Apply Version Updates From Current Changes (#101)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-08-16 19:44:53 +03:00
github-actions[bot] 866eb38906
Apply Version Updates From Current Changes (#99)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-08-16 02:04:19 +03:00
Amr Bashir 33168fa0a0
feat(windows): draw dark menubar if necessary (#98)
* feat(windows): draw dark menubar if necessary

closes #97

* Update Cargo.toml
2023-08-15 16:50:14 +03:00
Amr Bashir cfd4cb3fc5
chore: update tao and wry versions 2023-08-14 02:11:59 +03:00
github-actions[bot] d28f04de27
Apply Version Updates From Current Changes (#96)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-08-09 02:50:51 +03:00
github-actions[bot] 121c97519f
Apply Version Updates From Current Changes (#95)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-08-09 02:30:10 +03:00
github-actions[bot] 14683ec1ba
Apply Version Updates From Current Changes (#90)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-08-08 19:36:50 +03:00
github-actions[bot] 48472232fe
Apply Version Updates From Current Changes (#88)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-08-03 19:56:18 +03:00
github-actions[bot] 9b2185a4f1
Apply Version Updates From Current Changes (#86)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-08-03 16:44:03 +03:00
github-actions[bot] 50d388f929
Apply Version Updates From Current Changes (#82)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-08-01 19:43:54 +03:00
github-actions[bot] a999fb1d03
Apply Version Updates From Current Changes (#72)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-07-27 20:10:04 +03:00
Amr Bashir c7ec320738
refactor!: use optional Position type and fallback to cursor pos (#78)
* refactor!: use optional `Position` type and fallback to cursor pos

* impl gtk & change to use screen coords

* impl macos

* revert back to client coordinates

* fix build

* fix macos impl

* enhance examples

* fix serde feature

* fix tests

* lint

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-07-27 14:56:01 +03:00
Amr Bashir 98701d0b32
refactor(gtk): accept a container param instead of creating it (#75)
* refactor(gtk): accept a container param instead of creating it

* fix build

* fix clippy
2023-07-25 22:01:35 +03:00
renovate[bot] fafab8544c
fix(deps): update rust crate cocoa to 0.25 (#70)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-20 17:39:24 +03:00
github-actions[bot] b8005fe84e
Apply Version Updates From Current Changes (#68)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-06-19 22:40:46 +03:00
Amr Bashir ac14222934
feat: add common-controls-v6 (#69) 2023-06-19 21:58:45 +03:00
Amr Bashir 7af4477896
feat: add libxdo feature flag (#67)
* feat: add `libxdo` feature flag

* Update .changes/linux-libxdo-feature-flag.md
2023-06-19 20:59:10 +03:00
github-actions[bot] 6e59ec71f6
Apply Version Updates From Current Changes (#65)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-05-04 14:42:53 +03:00
renovate[bot] dfd7b9e437
fix(deps): update rust crate windows-sys to 0.48 (#62)
* fix(deps): update rust crate windows-sys to 0.48

* fix compilation

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
2023-04-17 13:25:40 +02:00
github-actions[bot] c85f499cd7
Apply Version Updates From Current Changes (#61)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-03-27 21:12:52 +02:00
github-actions[bot] 440b3ebf81
Apply Version Updates From Current Changes (#56)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-03-06 15:37:57 +02:00
github-actions[bot] ded3dfaf95
Apply Version Updates From Current Changes (#52)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-02-28 18:22:59 +02:00
github-actions[bot] 74801f238a
Apply Version Updates From Current Changes (#49)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-02-14 14:51:39 +02:00
github-actions[bot] 8a949c2216
Apply Version Updates From Current Changes (#45)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-02-08 21:24:43 +02:00
renovate[bot] d7905d5f22
chore(deps): update rust crate winit to 0.28 (#42)
* chore(deps): update rust crate winit to 0.28

* fix ci

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2023-02-02 15:42:36 +02:00
github-actions[bot] e6f4357b6d
Apply Version Updates From Current Changes (#39)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-01-26 15:23:51 +02:00
Amr Bashir fb3d0aa303
chore(deps): bump gtk version 0.15 -> 0.16 (#38)
* chore(deps): bump gtk version 0.15 -> 0.16

* fix feature flags
2023-01-26 15:16:53 +02:00
renovate[bot] 4f2ec9ec09
fix(deps): update rust crate windows-sys to 0.45 (#37)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-21 02:23:06 +02:00
github-actions[bot] ccffd38c5e
Apply Version Updates From Current Changes (#36)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-01-03 04:09:41 +02:00
github-actions[bot] 1e87714759
Apply Version Updates From Current Changes (#33)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2022-12-30 14:27:56 +02:00
Amr Bashir 7fc1b02cac
feat: add IconMenuItem, closes #30 (#32)
* feat: add `IconMenuItem`

* Linux

* macOS
2022-12-30 14:23:40 +02:00
github-actions[bot] 1c4587efe5
Apply Version Updates From Current Changes (#29)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2022-12-20 00:59:39 +02:00
renovate[bot] 0b0ec147bc
fix(deps): update rust crate thiserror to 1.0.38 (#31)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-18 02:58:39 +02:00
github-actions[bot] b00c9e283b
Apply Version Updates From Current Changes (#27)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2022-12-06 03:05:44 +02:00
Amr Bashir 812ff0d37a
refactor: rewrite (#18)
* refactor: rewrite

* fix syncing check items and cleanup

* clippy

* Add `append`, `prepend` and `insert`

* accept different menu items in `*_list` methods

* add context menu for gtk

* add `with_items`

* add `items` getter

* chore: unreachable! and typos

* implement remove

* `*_list`  -> `*_items`

* fix winit example

* add `show_context_menu_for_gtk_window` on `Submenu` type

* Add windows implementation

* TextMenuItem -> MenuItem, MenuItem trait -> MenuEntry

* Add `PredfinedMenuItem`

* move internal mod into its own file

* update tao example to latest tao's `muda` branch

* fix build on linux with latest tao changes

* Fix accelerators on Linux

* update examples

* remove recursive removal of submenus

* remvoe gtk menu items recursively

* fix tao example on macos

* On Windows, remove parents hmenu when removing an item

* Add documentation

* update README.md

* use insert_items with postion 0 for prepend_items

* Add menu mnemonics in examples

* Add `ContextMenu` trait

* Add methods to `ContextMenu` trait necessary for tray icon

* fix linux build

* fix context menu on gtk

* Expose gtk::Menu in ContextMenu trait

* Revert context menu to create a gtk::Menu on each call

* clippy lints

* cleanup crate structure

* update docs

* Fix doc tests and links

* more docs fixes

* error handling

* macOS implementation (#19)

* partial macOS implementation

* fix context menu examples

* add accelerator support for macOS

* strip ampersands from titles on macOS

* add CMD_OR_CTRL shorthand for modifiers

* implement actions for predefined menu items on macos

* fix examples

* more predefined items

* implement insert for macos

* refactor macOS implementation

* menu state getters and setters on macOS

* implement remove for macOS

* code tweaks

* add show_context_menu_for_nsview for Submenu on macOS

* docs improvements

* allow adding item to the same menu multiple times on macOS

* implement `items` for macOS

* strip only single ampersands from menu titles

* add support for menu item actions on macOS

* add app name to macOS About, Hide, Quit menu items

* add methods to set app window and help menus on macOS

* fix clickable submenu titles on macOS

* refactor submenu for safe reuse on macOS

* fmt & clippy

* few cleanups

* fix docs

* clippy

* fix docs

* cleanup examples

* fix tests

* fix clippy??

* use cargo action instead

* ???

* Replace popUpContextMenu with popUpMenuPositioningItem

Co-authored-by: Caesar Schinas <caesar@caesarschinas.com>
Co-authored-by: Wu Wayne <yuweiwu@pm.me>
2022-11-23 18:29:52 +02:00
Ngo Iok Ui (Wu Yu Wei) e33c5f0daf
feat: add accelerator module (#17)
* Add accelerator module

* Add Linux port

* Add macOS port

* Add Windows port

* Remove unused types

* Fix doc tests

* Add more variants
2022-07-20 14:34:09 +02:00
Amr Bashir 943beda6df
feat: implement NativeMenuItem (#9)
* feat: implement `NativeMenuItem`

* windows: refactor native menu item handle in window proc

* native menu items on linux

* change about status to not implemented on windows
2022-06-10 14:09:56 +02:00
Amr Bashir 6b98160e49
feat: accelerators (#6)
* feat: accelerators

* add accelerators on windows
2022-06-07 13:05:20 +02:00
amrbashir 68f16f15a3
refactor(linux): use Rc<RefCell> instead of Arc<Mutex> 2022-06-06 14:42:35 +02:00
amrbashir fc7b519b6a
chore: switch to tao branch that disables gtk menu creation 2022-06-05 15:13:56 +02:00
amrbashir a7b7b0cf34
typo 2022-05-08 19:36:39 +02:00
Yu-Wei Wu b2f1a3ab4f
Add macos port
Some configurations haven't implemented yet or just seem not possible.

Co-authored-by: Jason Tsai <jason@pews.dev>
2022-05-07 21:28:11 +08:00
amrbashir cadb53087b
rename crate to muda 2022-05-07 11:19:58 +02:00