Commit Graph

288 Commits

Author SHA1 Message Date
Julien Kauffmann
bdbf905e5d
Transformed event-loop callback to FnMut to allow mutable values (#2667) 2021-09-27 16:27:37 -03:00
Lucas Nogueira
4866404f04 fix(core): deadlock on window event handler 2021-09-26 10:01:03 -03:00
Lucas Nogueira
63ae30f187
fix(core): deadlocks on previous commit 2021-09-26 01:54:20 -03:00
Lucas Fernandes Nogueira
2812c4464b
feat(core): window, shortcut and clipboard API calls on main thread (#2659) 2021-09-26 01:50:27 -03:00
Bill Avery
bb00d5bd6c
Replace winapi with windows crate and use webview2-com instead of webview2 (#2615)
* Switch to webview2-com version of tao and wry

* Pick up latest branch of TAO and WRY

* Let WRY pick the branch for TAO instead of patch

* Add comment for wry next branch pending merge

* Add changelog

* Revert wry redirect in Cargo.toml

* Use pinned rev for matching PR merge commit
2021-09-24 17:40:22 +08:00
Lucas Nogueira
904bdb22f7
chore(deps): pin wry, update lock files 2021-09-23 14:42:25 -03:00
Ngo Iok Ui (Wu Yu Wei)
84f6e3e84a
Switch to next branch of wry (#2574) 2021-09-09 13:05:03 -03:00
Lucas Nogueira
c1494b3532
refactor: return Weak<Window> on create_tao_window 2021-08-31 15:50:40 -03:00
Amr Bashir
ad17b9bf2a
chore: add note about focusing the webview (#2545) 2021-08-29 20:12:45 +08:00
Elvinas Predkelis
3b33d67aa4
fix: re-adding focus/blur events for linux and macos (fix #2485) (#2489)
* fix: re-adding focus/blur events for linux and macos, closes #2485

* add change files [skip ci]

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-08-24 11:47:54 -03:00
renovate[bot]
1f98853573
chore(deps) Update Tauri Core (#2480)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: david <david@lemarier.ca>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: chip <chip@chip.sh>
2021-08-24 11:40:10 -03:00
github-actions[bot]
80f16d35f9
Apply Version Updates From Current Changes (#2246)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-08-16 17:59:06 -03:00
Lucas Fernandes Nogueira
50ffdc06fb
feat(core): panic when a dispatcher getter is used on the main thread (#2455) 2021-08-16 17:28:15 -03:00
Lucas Fernandes Nogueira
957e863e59
fix(core): unique WebContext for each window when TAURI_AUTOMATION unset (#2396) 2021-08-15 20:33:45 -03:00
Lucas Fernandes Nogueira
6be3f43391
feat(core): add Resumed and MainEventsCleared events, closes #2127 (#2439) 2021-08-15 18:14:26 -03:00
david
28c6b7adfe
feat: add Event::Ready (#2433) 2021-08-15 17:10:22 -03:00
Lucas Fernandes Nogueira
4a031add69
feat(core): expose set_activation_policy, closes #2258 (#2420)
* feat(core): expose `set_activation_policy`, closes #2258

* fix change file [skip ci]

* Update .changes/runtime-set-activation-policy.md [skip ci]

Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com>

* clippy

* allow unused mut on example

Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com>
2021-08-13 13:25:31 -03:00
Lucas Nogueira
6cd640fa0a
fix(core): import set_native_image on macOS 2021-08-13 11:25:39 -03:00
Ngo Iok Ui (Wu Yu Wei)
f81ebddfcc
feat: remove menu feature flag (#2415)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-08-13 10:23:32 -03:00
Lucas Fernandes Nogueira
f4eafec705
feat(core): add window_label to the ExitRequested event payload (#2410) 2021-08-12 14:22:08 -03:00
Lucas Fernandes Nogueira
5f6e135f23
refactor(cli.js): package as ES module, closes #2256 (#2392) 2021-08-11 14:00:35 -03:00
Lucas Fernandes Nogueira
fa9341ba18
feat(core): implement Debug on public API structs/enums, closes #2292 (#2387) 2021-08-11 02:07:39 -03:00
Lucas Fernandes Nogueira
d7dd653026
chore(deps): wry 0.12 (#2372)
* chore(deps): wry 0.12

* update tokio [skip ci]

* keep wry github [skip ci]
2021-08-09 00:10:02 -03:00
Wouter Buckens
892c63a053
feat(#2287): Add ExitRequested event to let users prevent app from exiting (#2293)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-08-08 21:12:32 -03:00
Ngo Iok Ui (Wu Yu Wei)
63ad303903
chore(linux): bump gtk to v0.14 (#2361)
* Bump gtk to v0.14

* Switch back to rfd
2021-08-06 18:15:22 +02:00
Lucas Fernandes Nogueira
15566cfd64
feat(core): add API to send wry window message to the event loop (#2339)
* feat(core): add API to send wry window message to the event loop

* expose types
2021-08-02 16:45:24 -03:00
chip
4b2aa35684
Add back WebDriver support (#2324) 2021-08-01 23:54:10 -03:00
david
426a6b4996
feat(macOS): Implement tray icon template (#2322) 2021-07-29 15:29:59 -04:00
david
8808085541
feat(window): Allow creation of Window without wry (#2321)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-07-29 14:35:26 -03:00
Amr Bashir
caa7bf44c9
refactor(core/wry): use is_menu_visible instead of atomic bool (#2320) 2021-07-29 09:50:18 -03:00
Amr Bashir
d832d575d9
fix(windows): use webview events on windows (#2277) 2021-07-23 09:31:17 -04:00
Jonathan Dizdarevic
226414d1a5
"cannot find type MenuHash in this scope" (#2240) 2021-07-20 05:37:21 -04:00
github-actions[bot]
e48bb3edff
apply version updates (#2121) 2021-07-16 09:23:10 -04:00
david
f0a8db62e4
core(deps): bump wry to 0.11 (#2210) 2021-07-15 11:47:19 -04:00
chip
fd8fab507c
refactor(core): remove Params and replace with strings (#2191)
* refactor(core): remove `Params` and replace with strings

* add tauri-utils to changelog

* update default runtime macro to accept type and feature

* remove accidental default feature addition

* remove changefile todo items that have no futher action

* fix clippy warning

* update changefile

* finish change file

* fix splashscreen example

* fix markdown typo [skip ci]

* remove final uses of `Params`

* add license header to new runtime module in tauri-macros

* update plugin guide to use runtime instead of params
2021-07-15 18:05:29 +08:00
Lucas Fernandes Nogueira
a410958d45
Revert "fix(wry): resize webview on window move, closes #1911" (#2202)
This reverts commit 06abe65569.
2021-07-12 12:58:49 -03:00
FabianLars
bc2c331dec
fix: center and focus not being allowed in config (#2199) 2021-07-12 11:59:32 -03:00
Lucas Fernandes Nogueira
8157a68af1
feat(core): allow listening to event loop events & prevent window close (#2131) 2021-07-06 13:36:37 -03:00
Lucas Fernandes Nogueira
e0a8e09cab
feat(core): expose gtk_window, closes #2083 (#2141) 2021-07-02 13:08:51 -03:00
Ngo Iok Ui (Wu Yu Wei)
6569c2bf5c
refactor(wry): remove a few locks requirements (#2137)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-07-02 00:06:58 -03:00
Lucas Fernandes Nogueira
06abe65569
fix(wry): resize webview on window move, closes #1911 (#2135) 2021-07-02 00:00:05 -03:00
Lucas Fernandes Nogueira
e663bdd593
fix(core): svg mime type (#2129) 2021-06-30 13:04:09 -03:00
Ngo Iok Ui (Wu Yu Wei)
a280ee90af
Fix high cpu usage on mac, fix #2074 (#2125)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-06-30 10:38:22 -03:00
github-actions[bot]
3806b88ee1
Apply Version Updates From Current Changes (#2069)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2021-06-28 11:03:55 -03:00
Lucas Fernandes Nogueira
fe32afcc93
fix(core): Window must be Send + Sync on Windows, closes #2078 (#2093) 2021-06-27 11:02:17 -03:00
github-actions[bot]
5353379d15
Apply Version Updates From Current Changes (#1823)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2021-06-23 16:56:16 -03:00
Lucas Nogueira
b4426eda9e
Revert "WebDriver support (#1972)"
This reverts commit be76fb1dfe.
2021-06-23 16:30:40 -03:00
Lucas Fernandes Nogueira
fca976404e
fix(wry): window event listeners being emitted to all windows (#2056) 2021-06-23 16:20:09 -03:00
chip
be76fb1dfe
WebDriver support (#1972)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-06-23 13:59:47 -03:00
renovate[bot]
951f04b9c1
chore(deps) Update Rust crate phf to 0.9 (#2051)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-06-23 13:03:28 -03:00
Lucas Nogueira
bef9f2845e
fix: build without menu feature 2021-06-23 12:05:58 -03:00
Lucas Fernandes Nogueira
c9b11001f1
fix(wry): menu event is now tied to the window (#2048) 2021-06-23 11:29:30 -03:00
Lucas Fernandes Nogueira
034c26013b
feat(core): add accelerator method to CustomMenuItem (#2043) 2021-06-22 12:53:13 -03:00
Lucas Fernandes Nogueira
842652abe5
chore(deps): update to wry 0.10 (#2041)
* chore(deps): update to wry 0.10

* fix: cli format
2021-06-22 10:47:45 -03:00
Lucas Fernandes Nogueira
d0bbc6d309
fix(wry): menu must be created on the main thread, closes #2038 (#2039) 2021-06-22 01:29:03 -03:00
Lucas Fernandes Nogueira
285bf64bf9
feat(core): add clipboard writeText and readText APIs (#2035) 2021-06-21 13:32:22 -03:00
Lucas Fernandes Nogueira
3280c4aa91
refactor(core): global shortcut is now provided by tao (#2031) 2021-06-21 12:29:26 -03:00
Lucas Fernandes Nogueira
7dcca6e928
feat(core): add request_user_attention API, closes #2023 (#2026)
* feat(core): add `request_user_attention` API

* fix: api lint

* fix build without window allowlist
2021-06-20 23:42:38 -03:00
Lucas Fernandes Nogueira
08c161c5e8
fix(core): remove window from HashMap on close (#2024) 2021-06-20 14:12:28 -03:00
Lucas Fernandes Nogueira
ab3eb44bac
fix(core): deadlock on window getters, fixes #1893 (#1998)
* fix(core): deadlock on window getters, fixes #1893

* fix compilation without menu feature
2021-06-16 11:07:41 -03:00
Lucas Fernandes Nogueira
954460c520
feat(core): MenuHandle show, hide, is_visible and toggle APIs (#1958) 2021-06-15 22:04:44 -03:00
Edgar Geier
cca8115d9c
refactor: update wry, simplify script eval (#1965)
* refactor: simplify `handle_event_loop`

* update wry to git rev

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-06-15 22:04:06 -03:00
Lucas Fernandes Nogueira
5cba6eb4d2
feat(core): add window center API, closes #1822 (#1954) 2021-06-05 18:20:16 -03:00
Lucas Fernandes Nogueira
dc6b0d8522
feat(core): set .rc values from tauri.conf.json, closes #1849 (#1951) 2021-06-05 01:16:54 -03:00
Lucas Fernandes Nogueira
9bf82f0d92
fix(core): run_on_main_thread now wakes the event loop (#1949)
* fix(core): `run_on_main_thread` now wakes the event loop

* chore: simplify code
2021-06-04 22:23:03 -03:00
Lucas Fernandes Nogueira
f7e9fe8f3f
refactor(core): new system tray and window menu APIs, closes #1898 (#1944) 2021-06-04 13:51:15 -03:00
Lucas Fernandes Nogueira
40b717edc5
feat(core): set window icon on Linux, closes #1922 (#1937) 2021-06-01 13:07:48 -03:00
Lucas Nogueira
e06aa27738
feat(core): add set_skip_taskbar API 2021-05-30 22:09:12 -03:00
Lucas Nogueira
5525b03a78
feat(core): add skip_taskbar API to the WindowBuilder/WindowOptions 2021-05-30 18:43:28 -03:00
Lucas Nogueira
36506c967d
feat(core): add is_visible API 2021-05-30 18:06:24 -03:00
Lucas Nogueira
5f351622c7
feat(core): add focus API to the WindowBuilder and WindowOptions, #1737 2021-05-30 17:41:28 -03:00
Lucas Nogueira
bb6992f888
feat(core): add set_focus window API, fixes #1737 2021-05-30 17:30:26 -03:00
Lucas Nogueira
1e8af280c2
feat(core): add is_resizable Window getter 2021-05-30 17:23:52 -03:00
Lucas Nogueira
f58a2114fb
feat(core): add is_decorated Window getter 2021-05-30 17:21:05 -03:00
Lucas Fernandes Nogueira
abf78c5860
fix(core): set parent window handle on dialogs, closes #1876 (#1889) 2021-05-21 16:53:46 -03:00
Lucas Fernandes Nogueira
8c0d0739ee
feat(core): add run_iteration, parent_window and owner_window APIs, closes #1872 (#1874) 2021-05-21 16:16:05 -03:00
Lucas Fernandes Nogueira
1be37a3f30
refactor(core): remove image dependency (#1859) 2021-05-18 21:46:21 -03:00
Lucas Fernandes Nogueira
95d518afa1
feat(core): expose AppHandle, add create_window API (#1855) 2021-05-18 16:49:01 -03:00
github-actions[bot]
a68b4ee827
Apply Version Updates From Current Changes (#1799)
Co-authored-by: jbolda <jbolda@users.noreply.github.com>
2021-05-12 16:31:52 -03:00
Lucas Fernandes Nogueira
1ab8dd93e6
fix(core): system-tray cargo feature usage, fixes #1798 (#1801) 2021-05-12 10:55:21 -03:00
Lucas Fernandes Nogueira
f5a480fea3
fix(core): window transparency (#1800) 2021-05-12 10:55:12 -03:00
github-actions[bot]
7c7a0777ca
Apply Version Updates From Current Changes (#1629)
* apply version updates

* fix metadata.json [skip ci]

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-11 16:20:35 -03:00
chip
55423590dd
refactor(core): Context fields now private, Icon used on all platforms (#1774) 2021-05-11 08:38:08 -03:00
Lucas Fernandes Nogueira
21ce355c48
chore: rename M: Params to P: Params (#1771) 2021-05-10 22:26:18 -03:00
Lucas Fernandes Nogueira
319cf16a54
fix: prune packages, add license files, closes #1507 (#1769)
Co-authored-by: Daniel Thompson-Yvetot <denjell@mailscript.com>
2021-05-10 20:28:15 -03:00
Lucas Fernandes Nogueira
22676df57a
refactor(core): menu and system-tray feature flags (#1765) 2021-05-10 13:27:42 -03:00
Lucas Fernandes Nogueira
b6b4128885
chore(deps): wry 0.9.1 (#1761) 2021-05-09 22:50:16 -03:00
Lucas Fernandes Nogueira
45a7a111e0
feat(core): add tauri-wry crate (#1756) 2021-05-09 18:43:50 -03:00