feat(ui-dioxus): switch to Blitz/wgpu native renderer (no WebView)

This commit is contained in:
Hibryda 2026-03-19 06:12:11 +01:00
parent f3d2ca78ba
commit d5172275e2
2 changed files with 5 additions and 15 deletions

View file

@ -9,7 +9,7 @@ license = "MIT"
[workspace]
[dependencies]
dioxus = { version = "0.7", features = ["desktop"] }
dioxus = { version = "0.7", features = ["native"] }
agor-core = { path = "../agor-core" }
serde = { version = "1", features = ["derive"] }
serde_json = "1"

View file

@ -35,20 +35,9 @@ use components::status_bar::{FleetState, StatusBar};
use state::demo_projects;
fn main() {
dioxus::LaunchBuilder::new()
.with_cfg(dioxus::desktop::Config::new()
.with_window(
dioxus::desktop::WindowBuilder::new()
.with_title("Agent Orchestrator — Dioxus Prototype")
.with_inner_size(dioxus::desktop::LogicalSize::new(1400.0, 900.0))
)
.with_custom_head(format!(
"<style>{}</style>",
theme::generate_css()
))
.with_background_color((30, 30, 46, 255)) // --ctp-base
)
.launch(App);
// Native/Blitz mode: wgpu renderer, no WebView
// CSS is injected via the <style> element in the RSX tree (see App component)
dioxus::launch(App);
}
/// Root application component.
@ -107,6 +96,7 @@ fn App() -> Element {
};
rsx! {
style { {theme::generate_css()} }
div {
class: "app-shell",
onkeydown: on_keydown,