Resume window position/size, watch cargo/dioxus tomls, fix css reverting during hotreloading, allow menubar events to be captured from within dioxus (#2116)

* Fix: css hotreloading being invalidated, watcher not watching cargo/dioxus tomls, add feature to restore window state

* Make clappy hippier

* remove console log

* use simpler css invalidator

* Less flash, remove log on web hotreload

* Fix floating window managed behavior on mac

* clippy...
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2024-03-20 09:16:18 -07:00
1 parent 44e997f7df
commit e923c6462c
17 files changed
+303 -40

No files matched your search

+10
View File
@@ -93,6 +93,16 @@ mod desktop_platforms {
.append_items(&[&MenuItem::new("Toggle Developer Tools", true, None)])
.unwrap();
// By default we float the window on top in dev mode, but let the user disable it
help_menu
.append_items(&[&MenuItem::with_id(
"dioxus-float-top",
"Float on Top (dev mode only)",
true,
None,
)])
.unwrap();
menu.append_items(&[&window_menu, &edit_menu, &help_menu])
.unwrap();