Update examples, add css
This commit is contained in:
57 files changed
+964
-595
No files matched your search
@@ -1,3 +1,7 @@
|
||||
//! Adjust the zoom of a desktop app
|
||||
//!
|
||||
//! This example shows how to adjust the zoom of a desktop app using the webview.zoom method.
|
||||
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn main() {
|
||||
@@ -8,6 +12,8 @@ fn app() -> Element {
|
||||
let mut level = use_signal(|| 1.0);
|
||||
|
||||
rsx! {
|
||||
h1 { "Zoom level: {level}" }
|
||||
p { "Change the zoom level of the webview by typing a number in the input below."}
|
||||
input {
|
||||
r#type: "number",
|
||||
value: "{level}",
|
||||
|
||||
Reference in new issue
Block a user