use bevy::{core::CorePlugin, log::LogPlugin, prelude::*, window::PresentMode}; use bevy_dioxus::desktop::prelude::*; use dioxus::prelude::*; /// This example illustrates how to customize the default window settings fn main() { App::new() .insert_resource(WindowDescriptor { title: "Window Settings".to_string(), width: 500., height: 300., present_mode: PresentMode::Fifo, ..Default::default() }) .add_plugin(CorePlugin) .add_plugin(LogPlugin) .add_plugin(DioxusPlugin::::new(Root)) .add_system(change_title) .add_system(toggle_cursor) // .add_system(cycle_cursor_icon) .run(); } #[allow(non_snake_case)] fn Root(cx: Scope) -> Element { cx.render(rsx! { h1 { "Window Settings" } }) } /// This system will then change the title during execution fn change_title(time: Res