feat: move webview to wry
This commit is contained in:
1 parent
2547da36a0
commit
99d94b69ab
11 files changed
+419
-96
No files matched your search
+5
-2
@@ -21,8 +21,11 @@ use dioxus::prelude::*;
|
||||
const STYLE: &str = include_str!("./assets/calculator.css");
|
||||
fn main() {
|
||||
dioxus::desktop::launch(App, |cfg| {
|
||||
cfg.title("Calculator Demo").resizable(false).size(350, 550)
|
||||
});
|
||||
cfg.with_title("Calculator Demo")
|
||||
.with_resizable(true)
|
||||
.with_skip_taskbar(true)
|
||||
})
|
||||
.expect("failed to launch dioxus app");
|
||||
}
|
||||
|
||||
enum Operator {
|
||||
|
||||
+3
-6
@@ -20,12 +20,9 @@ static App: FC<()> = |cx| {
|
||||
|
||||
cx.render(rsx! {
|
||||
div {
|
||||
h1 { "Dioxus Desktop Demo" }
|
||||
p { "Count is {count}" }
|
||||
button {
|
||||
"Click to increment"
|
||||
onclick: move |_| count += 1
|
||||
}
|
||||
h1 { "Hifive counter: {count}" }
|
||||
button { onclick: move |_| count += 1, "Up high!" }
|
||||
button { onclick: move |_| count -= 1, "Down low!" }
|
||||
}
|
||||
})
|
||||
};
|
||||
Reference in new issue
Block a user