Files
material-cpp-template/ui/main.slint
2025-09-25 11:49:06 +02:00

18 lines
386 B
Plaintext

import { FilledButton, ElevatedCard } from "@material";
export component MainWindow inherits Window {
property <int> count: 0;
ElevatedCard {
width: 90%;
height: 90%;
FilledButton {
text: "Count: " + count;
icon: @image-url("slint-logo.svg");
clicked => {
count += 1;
}
}
}
}