-
-
Notifications
You must be signed in to change notification settings - Fork 202
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: added text support to system tray - macos, closes #65 #369
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, just a small change needed.
/// Set new tray menu title. | ||
/// | ||
/// ## Platform-specific | ||
/// | ||
/// Only works on **macOS** | ||
#[cfg(target_os = "macos")] | ||
pub fn set_title(&mut self, title: &str) { | ||
self.0.set_title(title) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in SystemTrayExtMacOS
trait and you should make a builder variant for SystemTrayBuilderExtMacOS
.
You can find them in src/platform/macos.rs
this looks very promising, is there any way I can test this in my app? :) |
Since I'm waiting for this feature as well I created a new PR #554 The changes are the same as in this PR, I've just moved things to the existing traits as @amrbashir suggested and added support for the builder variant. |
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Checklist
fix: remove a typo, closes #___, #___
)Other information
Here's an example of the change, closes #65
Screen.Recording.2022-04-18.at.9.00.33.PM.mov
As this is my first contribution to tauri, please let me know of anything that needs to be done/changed for this to be accepted to be merged