Quickstart Rust Example Fix: Add x value for left Rectangle. (#5091)

This commit is contained in:
Scott B 2024-04-18 10:41:11 -05:00 committed by GitHub
parent f86f4993fa
commit 4bf8e788c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 0 deletions

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }