-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Tray Icon integration #3021
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
base: master
Are you sure you want to change the base?
Tray Icon integration #3021
Conversation
I'd like to see more of the code be disabled completely when the feature is disabled, IMO, nothing related to tray icon, even stubs, should be included because we have |
agreed that was just the first thing that popped out to me. really i think there should be pretty much no code included without enabling the feature |
Because of how tightly integrated this feature needs to be within the system, I didn't originally want to do this. I think it hurts the readability of the code and will make it harder to add functionality to this feature in the future. However, I've made the change to move the guards to all the public interfaces. |
https://github.com/tauri-apps/tray-icon/blob/dev/examples/winit.rs#L117-L125 I think on linux it needs gtk to show the tray icon |
Adds a basic integration with tray_icon. Usage has been put behind the
tray-icon
feature flag.Added the ability to:
Current limitations:
Screenshot of running example:
