slint/tests/cases/path_layout_alignment.60
Olivier Goffart 4b20bf97ef Add px unit in many places
(This was done automatically with the updater)
2020-07-14 17:14:59 +02:00

33 lines
No EOL
653 B
Text

TestCase := Rectangle {
width: 500px;
height: 500px;
Text {
text: "The red rectangle should be centered horizontally on the green line";
color: black;
}
Path {
x: 250px;
y: 100px;
width: root.width;
height: root.height;
commands: "M 100 0 L 100 250 ";
stroke_color: green;
stroke_width: 2;
}
PathLayout {
x: 250px;
y: 100px;
width: root.width;
height: root.height;
commands: "M 100 0 L 100 250 ";
Rectangle {
color: red;
width: 50px;
height: 50px;
}
}
}