regalade/web/src/main.rs

22 lines
466 B
Rust
Raw Normal View History

use regalade_gui::{App, AppContext, AppProps};
struct WebApp {}
impl AppContext for WebApp {}
fn main() {
console_log::init_with_level(log::Level::Info).unwrap();
let html = gloo_utils::document_element();
html.set_attribute("data-bs-theme", "dark")
.expect("could not set dark theme");
dioxus_web::launch_with_props(
App,
AppProps {
context: &WebApp {},
},
dioxus_web::Config::new(),
)
}