Commit graph

151 commits

Author SHA1 Message Date
Alex Janka 80f8bcfce4 bump dependency versions 2023-09-10 10:28:15 +10:00
Linda_pp f3b7d54224
chore: fix links in API document and add document link to README.md (#118)
* chore: fix links in API document and add document link to README.md

* Update README.md
2023-09-07 17:40:49 +03: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
Linda_pp c1fbde72a8
feat: add APIs to build AboutMetadata from Cargo package metadata (#116) 2023-09-01 18:23:01 +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
Amr Bashir 622f30b838
chore: add change file 2023-09-01 15:17:28 +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
Amr Bashir 264aed722d
refactor: seal IsMenuItem trait 2023-09-01 15:13:20 +03:00
Linda_pp 02e537ea06
feat: add into_id methods to all menu item types (#112)
* feat: add `into_id` methods to all menu item types

* fix: remove `into_id` from `IsMenuItem` and add `MenuItemKind::into_id` method
2023-09-01 14:59:42 +03:00
Amr Bashir bce7540bba
feat: add MenuItemKind::id (#113) 2023-08-31 18:13:41 +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
Amr Bashir 8d832c06f4
refactor: wrap Menu.id in Rc 2023-08-31 02:37:16 +03:00
Linda_pp 89154aede0
refactor(example): clean up wry example (#108) 2023-08-30 17:43:06 +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
Amr Bashir 4701bb836e
fix(windows): attach subclass for context menu if window doesn't have a menu bar (#105) 2023-08-29 20:06:58 +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
Amr Bashir e046132dfb
fix: changed IconMenuItem::set_native_icon to take &self 2023-08-19 17:27:39 +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
Amr Bashir 0050d4f273
fix: remove AboutMetadata serde support 2023-08-16 19:39:53 +03:00
Amr Bashir 47d1808090
feat: derive serde for more types 2023-08-16 19:37:19 +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 1a527e8708
feat: add missing PartialEq impls and blanket From impl for MenuId (#100) 2023-08-16 02:03:39 +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
Amr Bashir 829051a30a
refactor: dereference in partial_eq and add tests 2023-08-09 02:50:07 +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
Amr Bashir 32be0c5884
feat: add MenuId::new (#94) 2023-08-09 02:28:14 +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
Amr Bashir 662e17d0ec
refactor: impl drop for inner types (#92)
* refactor: impl drop for inner types

* macos

* impl todos in macos .remove()

* remove code

* fix gtk accelerator not working after creating the context menu
2023-08-08 19:32:27 +03:00
Amr Bashir 043026c30d
feat: add Menu/Submenu::remove_at (#93) 2023-08-08 17:53:15 +03:00
Amr Bashir 8c2019eba0
chore: make MenuId field public 2023-08-08 16:39:27 +03:00
Amr Bashir 874f345f3c
chore: add chnage file 2023-08-07 14:50:07 +03:00
Amr Bashir c777f6606a
refactor: add MenuId type and related functions (#91)
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-08-04 16:17:58 -03:00
Amr Bashir dc8e9d41fd
fix: fix examples 2023-08-03 21:55:19 +03:00
Lucas Fernandes Nogueira 7ca4b11564
fix(linux): menu must be the container's first child (#89)
* fix(linux): menu must be the container's first child

* check if gtk box instead

* Revert "check if gtk box instead"

* update change file
2023-08-03 21:54:08 +03:00
Amr Bashir bb92b5667e
refactor: change submenu set_as functions 2023-08-03 21:48:55 +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
Lucas Fernandes Nogueira 22956ec724
fix(macos): properly remove menu (#87) 2023-08-03 19:55:25 +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
Amr Bashir b1070cf144
chore: add todo 2023-08-03 16:42:47 +03:00
Lucas Fernandes Nogueira 0bad3aca96
fix(macos): manually retain/release NSMenu reference (#84)
* fix(macos): manually retain/release NSMenu reference

* Update src/platform_impl/macos/mod.rs

* retain submenu nsmenu

* remove unused
2023-08-03 16:32:43 +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
Amr Bashir 7a3bc5505f
fix(windows): don't drop Menu or MenuChild inside menu proc (#81)
`Menu` or `MenuChild`  are not owned by the menu proc and so it shouldn't drop it, previously this was okay because the `Menu` or `MenuChild` used to be a wrapper around `Rc<RefCell>` but that was changed in the last release.
2023-08-01 19:43:04 +03:00
Amr Bashir e5324b7684
chore: update docs 2023-07-28 04:38:38 +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 25526d7f12
chore: adjust change files 2023-07-27 20:07:55 +03:00
Amr Bashir 20c05ceae6
refactor!: add MenuItemKind enum (#79)
* refactor!: add `MenuItemKind` enum

* remove as_any
2023-07-27 19:58:51 +03:00
Amr Bashir 22f2405bb9
chore: typo 2023-07-27 19:45:44 +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