use ori::prelude::*; const LONG_TEXT: &str = include_str!("long_text.txt"); fn ui(cx: Scope) -> impl View { let counter = cx.signal(1); let checked = cx.signal(false); let knob_value = cx.signal(0.0); let text = cx.signal(String::new()); let font_size = cx.memo(|| if *checked.get() { 32 } else { 24 }); checked.track(); view! { } } fn main() { App::new(|cx| ui(cx)) // create a new app with the ui function .title("Widget Gallery (examples/widget_gallery.rs)") // set the window title .night_theme() .style("examples/style/widget-gallery.css") // load a custom stylesheet .run(); // run the app }