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

Add an icon in macos topbar #1165

Open
fulljackz opened this issue Aug 11, 2023 · 7 comments
Open

Add an icon in macos topbar #1165

fulljackz opened this issue Aug 11, 2023 · 7 comments

Comments

@fulljackz
Copy link

fulljackz commented Aug 11, 2023

Your use case

What would you like to do?

It would be very helpfull to have an icon in the macos top bar with the same behavior as linux client.
On linux (gnome), the element green icon turns on red when you receive a message and voila.

On macos, there is a permanent notification banner in the top right of the screen which appears and disappear for each messages.

Why would you like to do it?

It would avoid permanent banner notifications.

How would you like to achieve it?

Have you considered any alternatives?

Nope.
I searched about this kind of issue here and on the web but I did not find any tips or solution.
Maybe that this subject has already been discussed and I did not saw it. If yes, dont hesitate to delete this issue (after few details if it can be done or not :))

Additional context

Running macos 13.5.

@yawks
Copy link

yawks commented Jan 31, 2024

It is explicitly excluded in the code, in the tray.ts file:
image

However, the electron documentation mentions Mac for tray icons: https://www.electronjs.org/docs/latest/api/tray
Was it a delibarate choice?

@t3chguy
Copy link
Member

t3chguy commented Jan 31, 2024

Yes it is intentionally not used on macOS in favour of the Dock, as that supports the notification badge etc, unlike tray on macOS.

@yawks
Copy link

yawks commented Feb 1, 2024

Ok, got it, and using a tool like https://github.com/xiaogdgenuine/Doll could be used to have it in the top bar.
However, I do not have any badge on the element icon in the Dock and I did not find any information about it?

@t3chguy
Copy link
Member

t3chguy commented Feb 1, 2024

@yawks check Notification settings both within Element & macOS

image

@yawks
Copy link

yawks commented Feb 1, 2024

You're right, it was just a setting in macos to have badges... 🤦
I can now have the Element icon in the topbar + count of unread messages using doll:
image
I am not sure this ticket should remain open.

@codedreality
Copy link

Would it be a possibility to add the functionality from electron to show a tray icon on macOS, maybe with a setting to enable it for people who would like to have it in top bar and which hide their Dock most of the time.

Think it would be sufficient to change the icon of the tray item to one for example with a red dot if there a new messages. No need to generate different numbers etc.

@t3chguy
Copy link
Member

t3chguy commented Apr 19, 2024

Technically possible yes, though the Product & Design teams are averse to adding endless settings to the app in the interest of simplicity so are unlikely to sign off on this and it would likely better be in a fork.

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

4 participants