Skip to content

Latest commit

 

History

History
351 lines (280 loc) · 33.8 KB

CHANGELOG.md

File metadata and controls

351 lines (280 loc) · 33.8 KB

Changelog

[0.8.4]

  • On Windows, remove the accelerator from CustomMenuItem::title returnd string.
    • 634116fe fix(Windows): remove accel str from CustomMenuItem::title returned string (#377) on 2022-04-28
  • On Windows and Linux, increase the resizing area for borderless windows based on scale factor.
    • 8701f64a fix: scale borderless resizing inset based on scale_factor, closes #376 (#379) on 2022-05-01

[0.8.3]

  • Implement Window::set_cursor_position for Linux.
    • afffaeae feat(linux): implement Window::set_cursor_position (#373) on 2022-04-23

[0.8.2]

  • Do not fire WindowEvent::Moved when is_maximized is called on macOS.
    • 25890b94 fix(macos): do not fire Event::Moved when checking is_maximized (#366) on 2022-04-13

[0.8.1]

  • Fixes compilation when only the tray feature is enabled.
    • da938957 fix(tao): compilation when only the tray feature is enabled (#363) on 2022-04-05

[0.8.0]

  • Add EventLoopWindowTargetExtMacOS::set_activation_policy_at_runtime.
    • ef06c508 Set activation policy at runtime (#353) on 2022-03-30
  • On Windows and Linux, disable resizing maximized borderless windows.
    • 13c5c996 fix(win,linux): disable resizing maximized borderless windows (#356) on 2022-03-30
  • Breaking change: Renamed the ayatana Cargo feature to ayatana-tray, now the default feature for tray on Linux, and added the gtk-tray feature.
    • 40ec796d refactor(tray): split gtk and ayatana appindicator features (#362) on 2022-04-05
    • On Windows, Fix random characters when changing menu items title through CustomMenunItem::set_title.
    • e4725bf5 fix(Windows): fix random chars when changing menu item title (#361) on 2022-03-31
  • On Windows, Fix Window::set_inner_size setting a bigger size than requested.
    • 089f3878 fix(Windows): fix set_inner_size setting a bigger size, closes #194 (#354) on 2022-04-03

[0.7.0]

  • Fire Event::LoopDestroyed when the macOS dock Quit menu item is clicked.
    • 34257a75 feat(macos): fire LoopDestroyed when the dock's Quit item is clicked (#351) on 2022-03-27
  • Added Event::DecorationsClick (Windows only).
    • 411af5b1 feat(windows): add Event::DecorationsClick (#352) on 2022-03-27
  • Enhance the MenuItem::About menu on Linux. Breaking change: The About variant now uses an struct instead of a string.
    • 84c677fd refactor: fix and enhance the about menu on Linux (#347) on 2022-03-25
  • Fixes the About menu on Linux not being shown.
    • 84c677fd refactor: fix and enhance the about menu on Linux (#347) on 2022-03-25
  • Properly fire WindowEvent::Destroyed on Linux when the Window is dropped.
    • cdd4ac32 fix(events): properly fire WindowEvent::Destroyed on Linux (#349) on 2022-03-25
  • Properly change the window to fullscreen state if the builder instructs it to use Fullscreen::Borderless(None).
    • 5ecbac19 fix(window): fullscreen on Linux when builder is set to Borderless(None) (#348) on 2022-03-25
  • Fixes system tray item titles on Windows by forcing the string to be null-terminated.
    • 7f900a16 fix(tray): force item title string to be null-terminated (#340) on 2022-03-09
  • Properly fire WindowEvent::Destroyed on macOS when the Window is dropped.
    • efd3eecc fix(window): properly fire WindowEvent::Destroyed on macOS (#350) on 2022-03-25
  • Fix inconsist behaviour when setting menu on mac.
    • 5abdbd1f Fix inconsist behaviour when setting menu on mac (#345) on 2022-03-17

[0.6.4]

  • Fix a deadlock on Windows when using Window::set_visible(true) in the EventLoop::run closure.
    • 475e64d2 fix(Windows): fix a deadlock in WindowState (#338) on 2022-03-06
  • On Windows, apply maximize state before minimize. Fixes Window::set_minimized not working when the window is maximized.
    • 11dac102 fix(windows): apply maximize state before minimize (#334) on 2022-03-01

[0.6.3]

  • Revert Global Shortcut fix on Linux. See #331 for more information.
    • f5e19e0f Revert "Implement global shortcut on Linux, close #307 (#308)" (#330) on 2022-03-01

[0.6.2]

  • Fixes the set_fullscreen implementation on Linux when the Fullscreen::Borderless value is set to None.
    • 456147de fix(linux): fullscreen on current monitor (#320) on 2022-02-13

[0.6.1]

  • Fix global shortcut support on Linux (both x11 and wayland).

[0.6.0]

  • Update to gtk 0.15
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Emit errors when parsing an invalid accelerator from a string.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Add support for more accelerator keys: , - . = ; / \ ' ` [ ] Space Tab and F13-F24
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Increased Borderless window resizing inset.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Update to 2021 edition and msrv to 1.56
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Breaking: Rename the Exit variant of ControlFlow to ExitWithCode, which holds a value to control the exit code after running. Add an Exit constant which aliases to ExitWithCode(0) instead to avoid major breakage. This shouldn't affect most existing programs.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Fixes the MenuItem::Quit behavior on Windows.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Add support for SPACE shortcut key on Windows.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
    • Fix redrawn event that causing infinite lopp on Linux
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Fix linux native menu items not working.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
    • Fix resizing undecorated window on Linux.
  • Undecorated window can be resized using touch on Linux.
  • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Fix focus events not firing on Linux
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Add monitor selection when fullscreen on Linux and close possible way to create VideoMode on Linux since gtk doesn't acutally have such feature.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
    • Add RedrawEventsCleared and RedrawRequested on Linux
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Add run_return trait on Linux
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • window.set_skip_taskbar() on Linux will now also skip the pager (Alt+Tab), this matches the behavior on Windows.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Update tray dependency version.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Fix deadlock when unregistering shortcut on Linux.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Fire WindowEvent::Resized and WindowEvent::Moved when window is min/maximized on Linux to align with Windows behavior.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Fix menubar missing on borderless window.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Fix core-video-sys dependency.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Fix linking to the ColorSync framework on macOS 10.7, and in newer Rust versions.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Allow more strings to parse to keycode, for example , is now parsed as a comma.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
    • Update raw-window-handle to 0.4
  • Add raw_window_handle() implementation on linux.
  • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Fix click events missing whe tray has menu.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Add macOS show_application() method
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Add new_any_thread to Unix event loop.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Replace all of the winapi crate references with the windows crate. The generated bindings are in the webview2-com-sys crate to share types with WRY later.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Implement Clone for EventLoopWindowTarget.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Update the windows crate to 0.25.0, which comes with pre-built libraries. Tao no longer depends on webview2-com-sys to generate bindings shared with WRY.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Update the windows crate to 0.29.0.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Update the windows crate to 0.30.0. This version re-introduced a lot of new-types for things like HWND, LRESULT, WPARAM, LPARAM, etc.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Fix using WindowBuilder::with_visible and WindowBuilder::with_maximized not behaving correctly.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • On Windows, send correct position on system tray events.
    • 0dd71973 Merge next back to dev branch (#305) on 2022-02-05
  • Add support for more accelerator keys: , - . = ; / \ ' ` [ ] Space Tab and F13-F24
    • b047ae41 feat: support accelerator key strings , - . Space Tab and F13-F24 (#228) on 2021-11-15
  • Allow more strings to parse to keycode, for example , is now parsed as a comma.
    • f0a3dcee feat: Allow more strings to parse to keycode (#229) on 2021-11-03
  • Add macOS show_application() method
    • 7e10b0df feat(macos): Add unhide_application method, closes #182 (#231) on 2021-11-03

[0.5.2]

  • Fix missing Sync trait on EventLoopProxy. This commit also introduces crossbeam-channel crate which could also improve the performance.

[0.5.1]

  • Remove feature flag that break doc builds
    • 324eca05 Update README.md on 2021-05-08
    • 2a90e63c publish new versions on 2021-05-08
    • eb6f4f9e Remove feature flag that breaks doc build (#178) on 2021-08-09

[0.5.0]

  • Move global_shortcut mod to the lib root.

    • 6e72e54c refactor: move global_shortcut mod to lib roo (#145) on 2021-07-20
  • Bump gtk-rs to version 0.14. This also introduces a new feature ayatana for developers to use updated libayatana-appindicator since the original libappindicator is no longer maintained.

  • Remove Clipboard MenuItem on Linux since they only work on a few sepcific widget.

    • 969052ab fix(linux): remove clipboard menuitems on Linux (#150) on 2021-07-21
  • Fixes incorrect monitor size on Linux.

  • Fix no key equivalent for Accelerator for Space, Escape, Minus and Equal keycode.

    • ecd3c405 fix(accelerator): add missing KeyCode to prevent no key equivalent for Accelerator (#148) on 2021-07-20
  • Fix incorrect macOS Redo and Close Window shortcuts

    • f4d718a8 fix(macos): Fix incorrect Redo and CloseWindow accelerators (#166) on 2021-08-03
  • Images you mark as template images should consist of only black and clear colors. You can use the alpha channel in the image to adjust the opacity of black content, however.

  • 577458c4 feat(tray): Support macOS icon template (#162) on 2021-07-29

  • macOS: Add with_parent_window() on WindowBuilder.

    • 73c7aac7 feat(macOS): Allow creation of child Window (#160) on 2021-08-04
  • Removed SystemTrayExtWindows::remove(), the icon will be automatically removed when SystemTray is dropped.

    • cc9d2b17 refactor: refactor system_tray impl on windows (#153) on 2021-07-22
  • Add MenuItem::SelectAll implementation on windows.

    • 222adeb2 feat(window): add Select all native menu item (#146) on 2021-07-21
  • Add flags to support all other possible unix systems.

    • 546f51a3 Add flags to support other unix systems. (#142) on 2021-07-20
  • Fix confliction between set_skip_taksbar(true) and set_visible(false).

    • 226e6611 fix(Windows): conflict between taskbar and visible (#172) on 2021-08-06

[0.4.0]

  • On Windows, Allow resizing of decorations: false aka borderless window.
    • f35dd03d fix(windows): fix aero-snap and resizing of borderless window, fixes #103 #104 (#110) on 2021-07-07
  • Do not close the window on CloseRequested event and let the user handle it, keeping compatibility with macOS and Windows behavior.
    • ea7330ef fix(linux): do not close window on CloseRequested event (#114) on 2021-07-05
  • On Windows, fix Aero-Snap for decorations: false aka borderless window.
    • f35dd03d fix(windows): fix aero-snap and resizing of borderless window, fixes #103 #104 (#110) on 2021-07-07
  • Implement MonitorHandle and related methods on Linux.
    • 6fcfa629 feat(linux): implement MonitorHandle and related methods (#125) on 2021-07-12
  • Add is_menu_visilbe getter on Window
  • On macOS, make sure the set_focus is triggered even if the window is not visible.
    • 3da167aa fix(macos): set_focus should be triggered even if the window isn't visible (#128) on 2021-07-14
  • Fix with_visible(bool) in WindowBuilder for macOS.
    • a0ac7075 fix(macos): Window state (visible) (#119) on 2021-07-06
  • Mark enums as #[non_exhaustive] to prevent breaking changes on enum update.
    • 9b906f50 refactor: add #[non_exhaustive] attributes to enums (#90) on 2021-07-07
  • Remove with_focus and focus field in WindowAttribute. Use set_focus instead in most cases.
    • e2399bc9 Remove with_focus and focus field in WindowAttribute (#121) on 2021-07-06
  • Revert d344825 and move set_skip_taskbar back behind a WindowExtWindows and WindowExtUnix.
    • a641d3a3 refactor: Revert d344825, move set_skip_taskbar behind platform-ext (#118) on 2021-07-06
  • SystemTray expose set_menu to update the system tray menu once created.
    • 578dd23e feat: implement set_menu for system tray (#106) on 2021-07-14
  • Only show window behaviour when it is visible. winuser::ShowWindow will show the window and make with_visible(false) obsolete.
    • ff0903f6 Only show window behaviour when it is visible (#126) on 2021-07-14
  • Add with_skip_taskbar behind WindowBuilderExtWindows and WindowBuilderExtUnix.
    • e7cdb950 feat(taskbar): add with_skip_taskbar for windows and linux (#127) on 2021-07-14

[0.3.1]

  • Add window_id to MenuEvent.
    • 96651dcc feat(menu): Add window_id to MenuEvent (#89) on 2021-06-22
  • Prevent duplicate MenuEvent on window menu in Windows.
    • 8cf4033f fix(windows): menu event (#91) on 2021-06-22

[0.3.0]

  • Drop the event callback before exiting on macOS.
    • 52ebebbc Drop the event callback before exiting (#86) on 2021-06-18
  • Add clipboard api exposing read_text and write_text.
  • Fix LoopDestroyed to really exit the application.
    • 55e52a91 Fix LoopDestroy condition to really exit the app on 2021-06-01
  • Implement all control flow variants
    • 16e2ac06 Add change file on 2021-05-19
  • Add checks before focusing window
    • 1bd3b1c0 Add change file on 2021-05-22
  • Add is_visible getter on Window
    • c402a38b feat: Add is_visible getter to Window (#61) on 2021-05-27
  • Breaking change: New keyboard API, including Accelerator and GlobalShortcut.

WindowEvent::ModifiersChanged is emitted when a new keyboard modifier is pressed. This is your responsibility to keep a local state. When the modifier is released, ModifiersState::empty() is emitted.

WindowEvent::KeyboardInput as been refactored and is exposing the event KeyEvent.

All menus (ContextMenu and MenuBar), now includes Accelerator support on Windows, macOS and Linux.

New modules available: keyboard, accelerator and platform::global_shortcut.

Please refer to the docs and examples for more details.

  • 01fc43b0 refactor: keyboards events (#82) on 2021-06-21
  • Breaking change: New menu/tray API.

System tray now expose set_icon() to update the tray icon after initialization. The system_tray::SystemTrayBuilder has been moved to the root of the package as a module and available on Windows, Linux and macOS, only when the tray feature is enabled. Windows expose a remove() function available with SystemTrayExtWindows.

Menu builder has been rebuilt from scratch, exposing 2 different types, ContextMenu and MenuBar.

Please refer to the docs and examples for more details.

  • 7546dbd1 refactor: menu & tray (#77) on 2021-06-03
  • Fix match branch of run loop observer on iOS.
    • 4e9fede6 Add change file on 2021-05-23
    • skip_taskbar is renamed to set_skip_taskbar.
  • set_skip_taskbar is now available on Window and is no longer behind a PlatformExt.
  • set_skip_taskbar takes a boolean to either show or hide the window icon from the taskbar.
  • Add with_skip_taskbar to WindowBuilder.
  • c0aac091 add with_skip_taskbar on 2021-05-29
  • Add skip_taskbar implementation for windows
    • 83341701 feat: add skip_taskabr impl for windows (#78) on 2021-05-29

[0.2.6]

  • Add is_decorated getter on Window
  • Add is_resizable getter on Window
  • Fix panic from borrowing in event loop on linux.
    • 12d7ccbc Fix event loop on linux on 2021-05-17
  • Implement set_focus() and with_focus() for macOS, Windows and Linux.
    • 448e4c17 Add change file on 2021-05-07

[0.2.5]

  • Fix Priority import on Linux.
    • 20128896 Add change file on 2021-05-17

[0.2.4]

  • Refactor control flow implementation to wait.
    • f5514f04 Add change file on 2021-05-15

[0.2.3]

  • Split feature flags (menu and tray).

[0.2.2]

  • Add dox flag to skip link lib when building doc.

[0.2.1]

  • Update covector script to fix doc build.
    • 25f291f2 Update covector script to fix doc build on 2021-05-09

[0.2.0]

  • Update README and bump version.
    • 324eca05 Update README.md on 2021-05-08
  • Implement menu item varients for Linux.
    • 0637570f Add change file on 2021-05-06
  • Implement status bar on Linux.
    • e17bce40 Add change file on 2021-05-07
    • 86743720 [skip ci] Update change file description on 2021-05-07
  • Implement basic menu builder for macOS, Windows and Linux.
    • ecd528d6 Add change file on 2021-05-04
    • 47640216 [skip ci] Update changelog on 2021-05-05
  • Add menu feature flag and rename status bar to system tray.
    • 06d95ad0 Cargo fmt & clippy on 2021-05-08
  • Implement basic menu builder for macOS, Windows and Linux.
    • 63868365 Add change file on 2021-05-05
    • 94254074 [ci skip] Update changelog on 2021-05-06
    • e17bce40 Add change file on 2021-05-07
    • 86743720 [skip ci] Update change file description on 2021-05-07