7adc007(#325 by @Y-ASLant) On Windows, preserve tray icon visibility on Explorer restart so a hidden tray icon won't become visible.
7e5953c(#311 by @Fullzoon) Fixed a Windows tray menu issue reported in #303 where the context menu could appear behind the taskbar after launching from the Start Menu by aligning the tray menu handling with the expected shell behavior, including showing the right-click menu on button release and postingWM_NULLafterTrackPopupMenu.
b74676a(#312 by @lucasfernog) Updatedmudato 0.19.
eabe0f4(#306 by @Legend-Master) Fix tray icon gets blurry after changing dpi on Windows
-
f912921(#294 by @felipecrs) Addedwith_menu_on_right_clickbuilder method,set_show_menu_on_right_clickto control whether the context menu is shown on right click (analogous to the existing left click option), andshow_menu()to programmatically display the tray menu.Together these enable dynamic menu workflows where the menu content is updated before being shown, for example by disabling automatic right-click menu, listening for the click event, updating items, and then calling
show_menu(). -
0a5835b(#295 by @thief-sty) Update png dependency version to 0.18.This avoids duplicated dependencies in downstream crates.
-
0a5835b(#295 by @thief-sty) Update rust version to 1.73.
d3c2468(#293 by @Slinetrac) Handle Windows tray icon creation when the taskbar is not ready by keeping the message window alive and re-registering on TaskbarCreated.cb22cd5(#290 by @FabianLars) The defaultidis now derived from the process id to prevent issues when multiple open apps use thetray-iconcrate on Linux.
c9f0d21(#278 by @aarol) Fix infinite loops when printing the full error chain (for example "{err:?}" with anyhow) forBadIcon4bbabba(#277 by @ancwrd1) Fix a problem on Windows platform where the created window was not destroyed correctly in case the tray icon creation fails.343599f(#284 by @FabianLars) This hotfix reverts tauri-apps#268 because it causedassertion failed: flush_paint_messagespanics.
-
1470763(#272 by @ahonn) Add platform specific methods to access the underlying native handles of the tray (similar toTrayIcon::window_handle):TrayIcon::ns_status_itemfor macOSTrayIcon::app_indicatorfor Linux.
-
2a6a19b(#268 by @iKineticate) On Windows, fix tray menu freeze on device change events
47fc3f3(#248 by @aschey) Addwindow_handlemethod to retrieve the underlyinghwndon Windows1f28d6f(#241 by @Legend-Master) Correctwith_menu_on_left_click's docs to include window support
1f0e1f8(#204 by @mrexox) Addset_icon_with_as_templatemethod to update icon andis_templateproperty, preventing glitchy effects during icon animation on macOS.
-
bf5cec4(#196 by @amrbashir) Breaking change Changedserdederive implementation forTrayIconEventto useserde(tag = "type")andrename_all = "camelCase"on variants so the expected JSON serialization would look like this{ "type": "Click", "button": "Left", "buttonState": "Down", "id": "some id", "position": { "x": 0, "y": 0 }, "rect": { "size": { "width": 0, "height": 0 }, "position": { "x": 0, "y": 0 } } }
c63733c(#193 by @amrbashir) Updatemudacrate to0.15
20819e4(#187 by @amrbashir) Removedbutton_statefield inTrayIconEvent::DoubleClickvariant.
a1303c3(#185 by @amrbashir) On Windows, Add and emitDoubleClickvariant forTrayIconEvent.
5a381ffUpdatecore-foundationcrate to0.10andcore-graphicsto0.24
-
d407869(#172) Added a new variantNotMainThreadto theErrorenum, which is emitted on macOS when trying to create tray icons from a thread that is not the main thread. -
8857b7dUpdatedmudacrate to0.14 -
d407869(#172) Rewrite the internals of the crate to useobjc2instead ofobjc.This should have no user-facing changes, other than improved memory safety, and less leaking.
-
587292b(#161) This release contains breaking change to the event structs in order to be able to add newEnter,MoveandLeaveevents:- Changed
TrayIconEventto be an enum instead of a struct. - Added new events for when the mouse enters, moves or leaves the tray icon region.
- Removed
ClickTypeenum and replaced it withMouseButtonenum. - Added
MouseButtonStateenum.
- Changed
a1cd50e(#145) Fix tray icon gets blurry after changing dpi on Windowsad317c7(#150) On macOS, fix tray event position not scaled properly.6d099ee(#149) On macOS, fix theyposition of the tray icon to be top-left not bottom-left of the icon.599bb8f(#147) AddTrayIcon::rectmethod to retrieve the tray icon rectangle on Windows and macOS.
-
63abc69(#127) Addeddpimodule and changed position and sizes inTrayIconEventto use the newdpimodule:- Removed
TrayIconEvent.xandTrayIconEvent.yand replaced withTrayIconEvent.position - Replaced
Rectangletype withRectwhich has just two fieldspositionandsize.
- Removed
6e8374aUpdatemudacrate to0.11
32b3523Updatemudacrate to0.9
75fed4aDeriveserdefor more types.
cd6fb13(#80) AddPartialEq<&str> for &TrayIconIdandPartialEq<String> for &TrayIconIdimplementations. Also add a blanketFrom<T> for TrayIconIdwhereT: ToStringimplementation.
95c1be8(#75) Thiconmodule has been removed and instead its types are exported from crate root.95c1be8(#75) Update tomuda@0.8f93b57dAddTrayIconIdstruct an changed all.id()methods to returnTrayIconIdinstead of a u32.95c1be8(#75) Changed the order of arguments forTrayIcon::with_idfunction to take theidas the first argument instead of the second.
71d25a1(#66) On Linux, fix the issue that gtk caches the icon if you useTrayIcon::set_iconrepeatedly.
d0a25b0(#61) On Windows, fix dropping tray icon caused the whole process to close.d0a25b0(#61) On Windows, fixTrayIcon::set_menunot firing events for the new menu.
04ed58fRemove accidental impl ofSyncandSendforTrayIconwhere it is not.
d8d6082(#57) AddTrayIconBuilder::idto access the unique id that will be assigend to the tray icon upon creation.dd63ef3AddTrayIconEvent::idmethod.3901519Update tomuda@0.713d448a(#55) ImplementCloneforTrayIcon.13d448a(#55) - Breaking change:TrayEventhas been renamed toTrayIconEventfor consistency with other struct names.- Breaking change:
ClickEventenum has been renamed toClickTypeandTrayEvent'seventfield has been renamed toclick_type
- Breaking change:
d8d6082(#57) AddTrayIcon::with_idandTrayIconBuilder::with_idto create the tray icon with specified id.
- On macOS, fix
set_visible(false)still occupying space on the system menu bar.
- Make Rectangle's point fields public.
- Update documentation.
- Update docs.
- 258b49a docs: update docs on 2023-02-08
- On macOS and Linux, add
TrayIconBuilder::with_titleandTrayIcon::set_titleto optionally add a text next to the icon. - Add
TrayIcon::set_visible.
- Add
TrayEvent::set_event_handlerto set a handler for new tray events. - Update
mudato0.3. - Breaking change Remove
tray_event_receiverfunction, useTrayEvent::receiverinstead.
- Update
mudadependency to0.2.- aa3aa1e chore: add change file on 2022-12-30
- Initial Release.
- 0651773 chore: prepare for initial release on 2022-12-05