-
Notifications
You must be signed in to change notification settings - Fork 36
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: add set_icon_with_as_template #204
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.
set_icon_as_template
was provided separately because it doesn't exist on other operating systems, this also doesn't fix usage DX that much because if you need to set a normal icon, you will have to
tray.set_icon_as_template(false);
tray.set_icon(new_icon);
which IMO is worse than current API and counter-intutive.
I think we can instead add set_icon_with_as_template
or something that allows the caller to specify both,
Adding a new method requires a contribution to the main Tauri repo, right? |
That's correct |
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.
Could you also add a change file in .changes
directory?
Co-authored-by: Amr Bashir <[email protected]>
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.
Thank you
Closes #203
I am not sure this is correct in 100% cases but it feels more natural that when you change the icon you want the similar settings for its
icon_is_template
value.