title_bar: Add menu item to deploy icon theme selector (#24482)

Added the icons option in the title bar between Themes and Extension.

| Before | After |
|
---------------------------------------------------------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------------------------------------------------------
|
| <img width="215" alt="Screenshot 2025-02-07 at 5 18 10 PM"
src="https://github.com/user-attachments/assets/ff8bf5ce-c176-4d8c-8b0e-bb1cc65ec1d8"
/> | <img width="206" alt="Screenshot 2025-02-07 at 5 18 01 PM"
src="https://github.com/user-attachments/assets/c47a302e-98af-4530-a908-097b8306f2f0"
/> |

Release Notes:

- Added an option to open the icon theme selector from the user menu.

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>
This commit is contained in:
Beniamin Zagan 2025-02-07 23:33:00 +01:00 committed by GitHub
parent e17e838c07
commit 4be89ea60f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -673,6 +673,10 @@ impl TitleBar {
"Themes…", "Themes…",
zed_actions::theme_selector::Toggle::default().boxed_clone(), zed_actions::theme_selector::Toggle::default().boxed_clone(),
) )
.action(
"Icon Themes…",
zed_actions::icon_theme_selector::Toggle::default().boxed_clone(),
)
.action("Extensions", zed_actions::Extensions.boxed_clone()) .action("Extensions", zed_actions::Extensions.boxed_clone())
.separator() .separator()
.link( .link(
@ -716,6 +720,10 @@ impl TitleBar {
"Themes…", "Themes…",
zed_actions::theme_selector::Toggle::default().boxed_clone(), zed_actions::theme_selector::Toggle::default().boxed_clone(),
) )
.action(
"Icon Themes…",
zed_actions::icon_theme_selector::Toggle::default().boxed_clone(),
)
.action("Extensions", zed_actions::Extensions.boxed_clone()) .action("Extensions", zed_actions::Extensions.boxed_clone())
.separator() .separator()
.link( .link(