docs: Modernize the tutorials for 1.0

This commit is contained in:
Tobias Hunger 2023-02-08 19:37:18 +01:00 committed by Tobias Hunger
parent 59e0723793
commit e64e15e277
21 changed files with 83 additions and 85 deletions

View file

@ -7,7 +7,7 @@ fn main() {
}
slint::slint! {
// ANCHOR: tile
MemoryTile := Rectangle {
component MemoryTile inherits Rectangle {
width: 64px;
height: 64px;
background: #3960D5;
@ -19,7 +19,7 @@ MemoryTile := Rectangle {
}
}
MainWindow := Window {
export component MainWindow inherits Window {
MemoryTile {}
}
// ANCHOR_END: tile