mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-22 20:45:31 +00:00
26 lines
510 B
Rust
26 lines
510 B
Rust
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#[allow(dead_code)]
|
|
fn main() {
|
|
MainWindow::new().unwrap().run().unwrap();
|
|
}
|
|
slint::slint! {
|
|
// ANCHOR: tile
|
|
component MemoryTile inherits Rectangle {
|
|
width: 64px;
|
|
height: 64px;
|
|
background: #3960D5;
|
|
|
|
Image {
|
|
source: @image-url("icons/bus.png");
|
|
width: parent.width;
|
|
height: parent.height;
|
|
}
|
|
}
|
|
|
|
export component MainWindow inherits Window {
|
|
MemoryTile {}
|
|
}
|
|
// ANCHOR_END: tile
|
|
}
|