Skip to content

Latest commit

 

History

History
340 lines (205 loc) · 26 KB

File metadata and controls

340 lines (205 loc) · 26 KB

Changelog

[0.24.1]

  • 7adc007 (#325 by @Y-ASLant) On Windows, preserve tray icon visibility on Explorer restart so a hidden tray icon won't become visible.

[0.24.0]

[0.23.1]

  • 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 posting WM_NULL after TrackPopupMenu.

[0.23.0]

[0.22.2]

[0.22.1]

[0.22.0]

  • f912921 (#294 by @felipecrs) Added with_menu_on_right_click builder method, set_show_menu_on_right_click to control whether the context menu is shown on right click (analogous to the existing left click option), and show_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.

[0.21.3]

  • 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 default id is now derived from the process id to prevent issues when multiple open apps use the tray-icon crate on Linux.

[0.21.2]

  • c9f0d21 (#278 by @aarol) Fix infinite loops when printing the full error chain (for example "{err:?}" with anyhow) for BadIcon
  • 4bbabba (#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 caused assertion failed: flush_paint_messages panics.

[0.21.1]

  • 1470763 (#272 by @ahonn) Add platform specific methods to access the underlying native handles of the tray (similar to TrayIcon::window_handle):

    • TrayIcon::ns_status_item for macOS
    • TrayIcon::app_indicator for Linux.
  • 2a6a19b (#268 by @iKineticate) On Windows, fix tray menu freeze on device change events

[0.21.0]

[0.20.1]

[0.20.0]

[0.19.3]

[0.19.2]

  • 1f0e1f8 (#204 by @mrexox) Add set_icon_with_as_template method to update icon and is_template property, preventing glitchy effects during icon animation on macOS.

[0.19.1]

[0.19.0]

  • bf5cec4 (#196 by @amrbashir) Breaking change Changed serde derive implementation for TrayIconEvent to use serde(tag = "type") and rename_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
        }
      }
    }

[0.18.0]

[0.17.0]

[0.16.0]

[0.15.2]

[0.15.1]

  • 5a381ff Update core-foundation crate to 0.10 and core-graphics to 0.24

[0.15.0]

  • d407869 (#172) Added a new variant NotMainThread to the Error enum, which is emitted on macOS when trying to create tray icons from a thread that is not the main thread.

  • 8857b7d Updated muda crate to 0.14

  • d407869 (#172) Rewrite the internals of the crate to use objc2 instead of objc.

    This should have no user-facing changes, other than improved memory safety, and less leaking.

[0.14.3]

  • e257d6b (#169) On Windows, fix Enter event emitted only once and never emitted again.

[0.14.2]

  • f1f3adb(#166) Switch from dirs_next to dirs as dirs_next is now unmaintained while dirs is

[0.14.1]

  • b491c98(#164) Fix tray icon rect scaled by dpi on Windows

[0.14.0]

  • 587292b(#161) This release contains breaking change to the event structs in order to be able to add new Enter, Move and Leave events:

    • Changed TrayIconEvent to be an enum instead of a struct.
    • Added new events for when the mouse enters, moves or leaves the tray icon region.
    • Removed ClickType enum and replaced it with MouseButton enum.
    • Added MouseButtonState enum.

[0.13.5]

  • a1cd50e(#145) Fix tray icon gets blurry after changing dpi on Windows
  • ad317c7(#150) On macOS, fix tray event position not scaled properly.
  • 6d099ee(#149) On macOS, fix the y position of the tray icon to be top-left not bottom-left of the icon.
  • 599bb8f(#147) Add TrayIcon::rect method to retrieve the tray icon rectangle on Windows and macOS.

[0.13.4]

  • 6b09b8e(#136) Add Icon::from_resource_name to support icon resource without a ordinal id on Windows

[0.13.3]

  • 646f56c(#138) Fix unexpected crashes on I/O or Png encoding errors on macOS and Linux.

[0.13.2]

  • c368bbc(#134) Fix incorrect icon size reported in events on macOS

[0.13.1]

  • 784e01e(#130) On macOS, reset the tray icon when using setIconAsTemplate to avoid artifacts.

[0.13.0]

  • 63abc69(#127) Update muda dependency to 0.13

  • 63abc69(#127) Added dpi module and changed position and sizes in TrayIconEvent to use the new dpi module:

    • Removed TrayIconEvent.x and TrayIconEvent.y and replaced with TrayIconEvent.position
    • Replaced Rectangle type with Rect which has just two fields position and size.

[0.12.0]

[0.11.3]

  • 5407f14(#114) On Linux, fix TrayIcon::set_visible incorrect inverted behavior.

[0.11.2]

[0.11.1]

  • 6382ea5(#103) On Linux, fix tray menu failing to show.

[0.11.0]

  • 6e8374a Update muda crate to 0.11

[0.10.0]

  • 8463328(#92) Upgraded gtk to 0.18 and bumped MSRV to 1.70.0.

[0.9.0]

[0.8.3]

  • 75fed4a Derive serde for more types.

[0.8.2]

  • cd6fb13(#80) Add PartialEq<&str> for &TrayIconId and PartialEq<String> for &TrayIconId implementations. Also add a blanket From<T> for TrayIconId where T: ToString implementation.

[0.8.1]

  • 0cf36ad(#77) Add TrayIconId::new convenience method.

[0.8.0]

  • 95c1be8(#75) Th icon module has been removed and instead its types are exported from crate root.
  • 95c1be8(#75) Update to muda@0.8
  • f93b57d Add TrayIconId struct an changed all .id() methods to return TrayIconId instead of a u32.
  • 95c1be8(#75) Changed the order of arguments for TrayIcon::with_id function to take the id as the first argument instead of the second.

[0.7.7]

  • 197f431(#73) Always highlight tray icon on click on macOS.

[0.7.6]

  • a458317(#71) Fixes a crash on mouse events on macOS.

[0.7.5]

  • 54fc7de(#69) Refactor macOS implementation to fix missing click issues.

[0.7.4]

  • 71d25a1(#66) On Linux, fix the issue that gtk caches the icon if you use TrayIcon::set_icon repeatedly.

[0.7.3]

  • c0d16c5(#63) Fixes multiple set_menu calls not updating the tray menu on macOS.

[0.7.2]

  • d0a25b0(#61) On Windows, fix dropping tray icon caused the whole process to close.
  • d0a25b0(#61) On Windows, fix TrayIcon::set_menu not firing events for the new menu.

[0.7.1]

  • 04ed58f Remove accidental impl of Sync and Send for TrayIcon where it is not.

[0.7.0]

  • d8d6082(#57) Add TrayIconBuilder::id to access the unique id that will be assigend to the tray icon upon creation.
  • dd63ef3 Add TrayIconEvent::id method.
  • 3901519 Update to muda@0.7
  • 13d448a(#55) Implement Clone for TrayIcon.
  • 13d448a(#55) - Breaking change: TrayEvent has been renamed to TrayIconEvent for consistency with other struct names.
    • Breaking change: ClickEvent enum has been renamed to ClickType and TrayEvent's event field has been renamed to click_type
  • d8d6082(#57) Add TrayIcon::with_id and TrayIconBuilder::with_id to create the tray icon with specified id.

[0.6.0]

[0.5.2]

  • 9409f36(#46) Fix compiling on i686-pc-windows-msvc target

[0.5.1]

  • ff7f7bc(#40) Fix building for i686-pc-windows-msvc target.

[0.5.0]

  • On macOS, fix set_visible(false) still occupying space on the system menu bar.
    • 71f9d29 fix(macos): remove tray icon when set_visible(false) (#37) on 2023-04-18

[0.4.4]

  • Make Rectangle's point fields public.
    • 12a0daf Make Rectangle's point fields public. (#33) on 2023-03-23

[0.4.3]

  • Update documentation.
    • 258b49a docs: update docs on 2023-02-08
    • 3293885 Apply Version Updates From Current Changes (#22) on 2023-02-08
    • e58a6ce docs: document menu and icon relation on Linux on 2023-02-12

[0.4.2]

  • Update docs.
    • 258b49a docs: update docs on 2023-02-08

[0.4.1]

  • Bump muda to 0.4 and libappindicator to 0.8
    • d92dd6d chore(deps): update deps (#17) on 2023-01-26

[0.4.0]

  • On macOS and Linux, add TrayIconBuilder::with_title and TrayIcon::set_title to optionally add a text next to the icon.
    • 6df6fc7 feat: add with_title and set_title (#11) on 2023-01-10
    • b83f14e chore: adjust change bumps on 2023-01-12
  • Add TrayIcon::set_visible.
    • ba4580e feat: add set_visible (#14) on 2023-01-12
    • b83f14e chore: adjust change bumps on 2023-01-12

[0.3.0]

  • Add TrayEvent::set_event_handler to set a handler for new tray events.
    • 9247abb refactor: allow changing the menu event sender (#8) on 2023-01-03
  • Update muda to 0.3.
    • 9247abb refactor: allow changing the menu event sender (#8) on 2023-01-03
    • b64b57e chore: update changefile on 2023-01-03
  • Breaking change Remove tray_event_receiver function, use TrayEvent::receiver instead.
    • 9247abb refactor: allow changing the menu event sender (#8) on 2023-01-03

[0.2.0]

  • Update muda dependency to 0.2.
    • aa3aa1e chore: add change file on 2022-12-30

[0.1.1]

  • Initial Release.
    • 0651773 chore: prepare for initial release on 2022-12-05