Commit Graph
25 Commits
Author SHA1 Message Date
Jonathan Kelley c29cef4ea3 move ScopeId methods to the runtime (#4723)
* move `ScopeId` methods to runtime methods

* cargo check unused

* wip...

* wip...

* fix consume context

* fix test

* guard hoisted

* fix doc comment
2025-10-04 01:55:52 -07:00
Jonathan Kelley 4f1d039bad clean up prelude (#4416)
* clear away prelude on dioxus

* clippy

* wip - drop prelude from dioxus-html

* docs clippy

* wip

* more fixe

* delete all preludes

* doc...

* better export

* merge some imports

* fewer global imports

* global incremental renderer

* fix cargo doc
2025-07-16 16:04:13 -07:00
Christopher Serr 3da821d184 Provide HotkeyState on Global Shortcut Events (#3822)
* Only react to hotkeys that are pressed

The global shortcuts are otherwise also triggering when the hotkey is
being released. This affects at least Windows.

* Provide `HotkeyState` on Global Shortcut Events

Instead of ignoring the events where the shortcut is released, the state
is now provided as an argument to the event handler.
2025-04-09 11:04:06 -07:00
Klemen 292f757d5d SystemTray (#3123)
* Added tray icon
2024-10-31 12:46:17 -07:00
Matt Hunzinger d53a631b5a Capture current scope ID in use_muda_event_handler (#3120)
* Capture current scope ID in use_muda_event_handler

* Enter scope in wry_handler instead
2024-10-28 01:10:14 +00:00
Evan Almloff f9c2f740c2 Pull out asset handler refactor from https://github.com/DioxusLabs/dioxus/pull/2972 (#3000) 2024-10-01 10:25:31 -05:00
Evan Almloff effc0a3b94 Make use_callback and Callback bring the runtime with them (#2852)
* Move the runtime along with Callback
2024-08-20 14:58:53 -07:00
Matt Hunzinger 205d8e9070 Add argument to use_callback (#2774) 2024-08-02 16:15:59 -07:00
Evan Almloff 72ef58b95e Create use_muda_event_handler hook (#2367)
* create use_muda_event_handler hook

* fix use_muda_event_handler re-export
2024-04-25 13:32:34 -04:00
Evan Almloff f8a8ee3e29 fix clippy 2024-03-08 12:45:23 -06:00
Jonathan Kelley 2ade193a5b Fix shortcut by wrapping callback 2024-02-05 18:50:13 -08:00
Jonathan Kelley c0522bc152 cargo check all 2024-01-23 16:58:29 -08:00
Jonathan Kelley 94b17cc8ca Fix non tokio builds for desktop 2024-01-18 04:07:28 -08:00
Jonathan Kelley 14651a3573 Change context api to panic with nice error message 2024-01-15 18:02:58 -08:00
Jonathan Kelley bb6aa9e792 Add back ondestroy hook 2024-01-15 14:27:20 -08:00
Jonathan Kelley 6134a2ce24 Clean up a number of examples 2024-01-15 13:06:05 -08:00
Jonathan Kelley fae0b08e61 Fix the router and stub out a number of crates to get compiling 2024-01-13 20:51:37 -08:00
Jonathan Kelley 8c94f0bc4a get compiling 2024-01-11 16:51:18 -08:00
Jonathan Kelley 8323e45970 Call handlers from context of a runtime and scope 2024-01-05 17:35:37 -08:00
Jonathan Kelley 42e25c407f A few more stylistic changes 2024-01-04 20:41:48 -08:00
Jonathan Kelley b5a125b963 Refactor IPC a bit 2024-01-04 20:27:04 -08:00
Jonathan Kelley 4adc912189 Collapse objects into single shared object 2024-01-04 20:17:38 -08:00
Jonathan Kelley 7444796a85 Simplify asset code a bit 2024-01-04 18:01:13 -08:00
Jonathan Kelley 2171263eda More cleanup work 2024-01-04 17:21:33 -08:00
Jonathan Kelley 9a6d745339 Refactor desktop into App type 2024-01-04 16:12:37 -08:00