mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-23 21:06:48 +00:00
docs: Modernize the tutorials for 1.0
This commit is contained in:
parent
59e0723793
commit
e64e15e277
21 changed files with 83 additions and 85 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue