ZIm/crates/zed
Victor Tran fa3d0aaed4
gpui: Allow selection of "Services" menu independent of menu title (#34115)
Release Notes:

- N/A

---

In the same vein as #29538, the "Services" menu on macOS depended on the
text being exactly "Services", not allowing for i18n of the menu name.

This PR introduces a new menu type called `OsMenu` that defines a
special menu that can be populated by the system. Currently, it takes
one enum value, `ServicesMenu` that tells the system to populate its
contents with the items it would usually populate the "Services" menu
with.

An example of this being used has been implemented in the `set_menus`
example:
`cargo run -p gpui --example set_menus`

---

Point to consider:

In `mac/platform.rs:414` the existing code for setting the "Services"
menu remains for backwards compatibility. Should this remain now that
this new method exists to set the menu, or should it be removed?

---------

Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
2025-08-11 21:10:14 +00:00
..
contents Fix bundle script 2023-11-17 17:44:41 -08:00
resources Fix icon padding (#35990) 2025-08-11 19:57:39 +02:00
src gpui: Allow selection of "Services" menu independent of menu title (#34115) 2025-08-11 21:10:14 +00:00
build.rs Fix icon size on Windows (#34277) 2025-07-11 15:09:10 +02:00
Cargo.toml Bump Zed to v0.200 (#35719) 2025-08-06 13:11:46 +00:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
RELEASE_CHANNEL Restore the default release channel (#23671) 2025-01-26 09:19:24 +00:00