mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Quickstart Rust Example Fix: Add x value for left Rectangle. (#5091)
This commit is contained in:
parent
f86f4993fa
commit
4bf8e788c4
7 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,7 @@ component MemoryTile inherits Rectangle {
|
||||||
// Left curtain
|
// Left curtain
|
||||||
Rectangle {
|
Rectangle {
|
||||||
background: #193076;
|
background: #193076;
|
||||||
|
x: 0px;
|
||||||
width: open_curtain ? 0px : (parent.width / 2);
|
width: open_curtain ? 0px : (parent.width / 2);
|
||||||
height: parent.height;
|
height: parent.height;
|
||||||
animate width { duration: 250ms; easing: ease-in; }
|
animate width { duration: 250ms; easing: ease-in; }
|
||||||
|
|
|
@ -27,6 +27,7 @@ component MemoryTile inherits Rectangle {
|
||||||
// Left curtain
|
// Left curtain
|
||||||
Rectangle {
|
Rectangle {
|
||||||
background: #193076;
|
background: #193076;
|
||||||
|
x: 0px;
|
||||||
width: open_curtain ? 0px : (parent.width / 2);
|
width: open_curtain ? 0px : (parent.width / 2);
|
||||||
height: parent.height;
|
height: parent.height;
|
||||||
animate width { duration: 250ms; easing: ease-in; }
|
animate width { duration: 250ms; easing: ease-in; }
|
||||||
|
|
|
@ -27,6 +27,7 @@ component MemoryTile inherits Rectangle {
|
||||||
// Left curtain
|
// Left curtain
|
||||||
Rectangle {
|
Rectangle {
|
||||||
background: #193076;
|
background: #193076;
|
||||||
|
x: 0px;
|
||||||
width: open_curtain ? 0px : (parent.width / 2);
|
width: open_curtain ? 0px : (parent.width / 2);
|
||||||
height: parent.height;
|
height: parent.height;
|
||||||
animate width { duration: 250ms; easing: ease-in; }
|
animate width { duration: 250ms; easing: ease-in; }
|
||||||
|
|
|
@ -27,6 +27,7 @@ component MemoryTile inherits Rectangle {
|
||||||
// Left curtain
|
// Left curtain
|
||||||
Rectangle {
|
Rectangle {
|
||||||
background: #193076;
|
background: #193076;
|
||||||
|
x: 0px;
|
||||||
width: open_curtain ? 0px : (parent.width / 2);
|
width: open_curtain ? 0px : (parent.width / 2);
|
||||||
height: parent.height;
|
height: parent.height;
|
||||||
animate width { duration: 250ms; easing: ease-in; }
|
animate width { duration: 250ms; easing: ease-in; }
|
||||||
|
|
|
@ -81,6 +81,7 @@ slint::slint! {
|
||||||
// Left curtain
|
// Left curtain
|
||||||
Rectangle {
|
Rectangle {
|
||||||
background: #193076;
|
background: #193076;
|
||||||
|
x: 0px;
|
||||||
width: open_curtain ? 0px : (parent.width / 2);
|
width: open_curtain ? 0px : (parent.width / 2);
|
||||||
height: parent.height;
|
height: parent.height;
|
||||||
animate width { duration: 250ms; easing: ease-in; }
|
animate width { duration: 250ms; easing: ease-in; }
|
||||||
|
|
|
@ -37,6 +37,7 @@ component MemoryTile inherits Rectangle {
|
||||||
// Left curtain
|
// Left curtain
|
||||||
Rectangle {
|
Rectangle {
|
||||||
background: #193076;
|
background: #193076;
|
||||||
|
x: 0px;
|
||||||
width: open_curtain ? 0px : (parent.width / 2);
|
width: open_curtain ? 0px : (parent.width / 2);
|
||||||
height: parent.height;
|
height: parent.height;
|
||||||
animate width { duration: 250ms; easing: ease-in; }
|
animate width { duration: 250ms; easing: ease-in; }
|
||||||
|
|
|
@ -53,6 +53,7 @@ slint::slint! {
|
||||||
// Left curtain
|
// Left curtain
|
||||||
Rectangle {
|
Rectangle {
|
||||||
background: #193076;
|
background: #193076;
|
||||||
|
x: 0px;
|
||||||
width: open_curtain ? 0px : (parent.width / 2);
|
width: open_curtain ? 0px : (parent.width / 2);
|
||||||
height: parent.height;
|
height: parent.height;
|
||||||
animate width { duration: 250ms; easing: ease-in; }
|
animate width { duration: 250ms; easing: ease-in; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue