slint hello world
This commit is contained in:
commit
1317c37c72
|
@ -0,0 +1 @@
|
|||
/target
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,12 @@
|
|||
[package]
|
||||
name = "fmeditor-slint"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
slint = "1.5.1"
|
||||
|
||||
[build-dependencies]
|
||||
slint-build = "1.5.1"
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
slint_build::compile("ui/appwindow.slint").unwrap();
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
slint::include_modules!();
|
||||
|
||||
fn main() -> Result<(), slint::PlatformError> {
|
||||
let ui = AppWindow::new()?;
|
||||
ui.run()
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
export component AppWindow inherits Window {
|
||||
Text {
|
||||
text: "Hello world!";
|
||||
color: green;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue