mirror of
https://github.com/allankoechke/material-cpp-template.git
synced 2026-12-01 01:15:56 +00:00
18 lines
386 B
Plaintext
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;
|
|
}
|
|
}
|
|
}
|
|
}
|