Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Enhance Tauri Tray Menus: Support Icons for Submenus and Checkable Items #11796

Open
mediarl opened this issue Nov 26, 2024 · 0 comments

Comments

@mediarl
Copy link

mediarl commented Nov 26, 2024

Describe the problem

The tray menu system has limitations in supporting icons for menu items. Currently:

  • Menu items cannot have icons if they include submenus.
  • Submenu items themselves cannot have icons.
  • Checked menu items cannot display icons.

These limitations restrict the ability to create visually rich and user-friendly tray menus. On macOS, applications like Klack demonstrate that all these features are possible, enhancing the overall user experience.

image

Describe the solution you'd like

I’d like Tauri v2 to enhance its tray menu functionality by:

  • Supporting icons for menu items that include submenus.
  • Allowing submenu items to have icons.
  • Enabling icons for checkable menu items.

This functionality would allow developers to build visually consistent and feature-complete tray menus, leveraging the design capabilities of macOS.

Alternatives considered

  1. Custom tray menu implementations using native bindings or platform-specific workarounds, which significantly increase development complexity.

  2. Accepting the current limitations and avoiding icons in menus, which compromises design and usability.
    Both alternatives are less than ideal compared to having first-class support directly in Tauri.

Additional context

No response

@mediarl mediarl changed the title [feat] [feat] Enhance Tauri Tray Menus: Support Icons for Submenus and Checkable Items Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant