Most changes were copied over from my `wry` PR at
https://github.com/tauri-apps/wry/pull/1296. Most notably a
`&ThreadLooper` is now passed to `wry::android_setup()` because we
have one, and it gives important safety guarantees when it comes to
registering callbacks on this looper, without (unnecessarily!) requiring
`Send`. A thread-local requirement already exists for the `JNIEnv` that
is passed around anyway.
Also note that certain workarounds and illogical inverted passes
around `key_code()` handling are no longer needed, as the `ndk` crate
now passes an `enum` with the raw `i32` around so that the `.into()`
conversion for `i32` (the correct type) now becomes lossless.
* feat(macOS): add Reopen event
* fix: unable to compile on macos when arch isn't aarch64
* fix(examples::reopen_event): only create new window when no window exists
* disable gtk menu creation
* remove all menu logic for `Window` type
* remove accelerator handling from tao on Windows
* use std c_void instead of libc
* fix linux build
* fix `pub` on macos
* fix linux build
* fix build on linux again
* Fix menubar focus using `Alt` on Windows
* remove tray and menu modules
* remove global-shortcut
* refactor: rmeove colorsync link
* remove unsued trait
* feat: implement any_thread for EventLoopBuilder on unix
* add gtk box by default
* publish new versions
* fix android build
* fix ios build
* change file
* change hit_test argument type
* fix windows and linux build
* fix ci
* fix ios
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
* feat(window): implement `minimizable` and `closable` for macOS
* feat(window): examples for `minimizable` and `closable`
* fix(window): stub `minimizable` and `resizable` for other platforms
* lint: run cargo fmt
* feat(window): implement `closable` for Linux
* refactor: rename parameter
* feat(window): implement `maximizable` for macOS
* feat(window): implement `minimizable` for Windows
* fix: edit bitflag for minimizable and move line
# Conflicts:
# src/platform_impl/windows/window_state.rs
* fix(window): initial `minimzable` value on Windows
* feat(window): implement `maximizable` for Windows
* docs(window): correct platform-specific notes
* feat(window): implement `closable` for Windows
* fix(window): missing `mut`
* chore: add changefile
* docs(window): correct platform-specific notes
* docs(window): improve docs for window control toggles
* refactor (examples): move window control examples into window_debug.rs
This reverts commit ddb9f2bcdf.
* refactor(window): move `set_closable` impl on Windows to `WindowFlags::apply_diff`
* chore: cargo fmt
* chore: update changefile
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* chore: remove println
* fix with_closable on Windows
* Update src/platform_impl/linux/window.rs
* Update src/platform_impl/linux/window.rs
* Update src/window.rs
* update flags
Co-authored-by: David A Klein <david@kleincyber.com>
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* feat(menus): add support for Plus key in accelerators
* feat(menus) add support for Plus key in accelerators on Windows
* feat(menus) add support for Plus key in accelerators on Linux
* chore: add changefile and docs for `KeyCode::Plus`
* lint: run cargo fmt
* docs: clarify wording
* feat: add set_tool_tip to tray
* add changes file
* note: make clear that this is wip
* fix comments
* tooltip example
* prepare for future windows implementation
* fmt
* fix build
* fix build again
Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
* linux: Defer writing files to the `SystemTrayBuilder::build` call
* linux: Add an argument to `temp_icon_path` for a custom directory
* linux: Add `temp_icon_dir` field to the `SystemTrayBuilder`
* linux: Add `with_temp_icon_dir` builder method
* linux: Use `with_temp_icon_dir` in `system_tray` example
* Add changes file
* Format with cargo fmt
Rather than rust analyzer