Skip to content

Commit 7fb419c

Browse files
refactor: move to muda and tray_icon crates (#7535)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Nogueira <lucas@tauri.app>
1 parent ec82776 commit 7fb419c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+5818
-4340
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri-utils': 'minor:feat'
3+
---
4+
5+
Add option to specify a tooltip text for the tray icon in the config.

.changes/config-tray-icon.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri-utils': 'major:breaking'
3+
---
4+
5+
`systemTray` config option has been renamed to `trayIcon`.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'tauri-runtime': 'minor:breaking'
3+
'tauri-runtime-wry': 'minor:breaking'
4+
---
5+
6+
`Dispatch::create_window`, `Runtime::create_window` and `RuntimeHandle::create_window` has been changed to accept a 3rd parameter which is a closure that takes `RawWindow` and to be executed right after the window is created and before the webview is added to the window.

.changes/runtime-defaultvbox.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri-runtime-wry': 'minor:feat'
3+
---
4+
5+
Add `Dispatch::default_vbox`
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'tauri-runtime': 'major:breaking'
3+
'tauri-runtime-wry': 'major:breaking'
4+
---
5+
6+
System tray and menu related APIs and structs have all been removed and are now implemented in tauri outside of the runtime-space.

.changes/runtime-new-args.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'tauri-runtime': 'minor:breaking'
3+
'tauri-runtime-wry': 'minor:breaking'
4+
---
5+
6+
`Runtime::new` and `Runtime::new_any_thread` now accept a `RuntimeInitArgs`.

.changes/system-tray-feat.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'tauri-runtime': 'major:breaking'
3+
'tauri-runtime-wry': 'major:breaking'
4+
---
5+
6+
Removed `system-tray` feature flag

.changes/tauri-app-handle-ref.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri': 'major:breaking'
3+
---
4+
5+
Changed `App::handle` and `Manager::app_handle` to return a reference to an `AppHandle` instead of an owned value.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri': 'minor:feat'
3+
---
4+
5+
Add `App::cleanup_before_exit` and `AppHandle::cleanup_before_exit` to manually call the cleanup logic. **You should always exit the tauri app immediately after this function returns and not use any tauri-related APIs.**

.changes/tauri-defaultvbox.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri': 'minor:feat'
3+
---
4+
5+
On Linux, add `Window::default_vbox` to get a reference to the `gtk::Box` that contains the menu bar and the webview.

0 commit comments

Comments
 (0)