[branding] Put sponsor behind the smoke bar

This commit is contained in:
Artem Grinev 2023-12-10 04:39:13 +03:00
parent 4eac6fa8dc
commit 34feef79b5
2 changed files with 44 additions and 53 deletions

View File

@ -10,7 +10,6 @@ Rectangle {
property int height: 6950
}
SystemPalette {
id: systemPalette
}
@ -87,18 +86,16 @@ Rectangle {
height: starsClose1.height + starsClose2.height
Image {
fillMode: Image.Tile
id: starsClose1
fillMode: Image.Tile
source: 'starsClose.svg'
height: maxSceneSize.height
width: maxSceneSize.width
}
Image {
fillMode: Image.Tile
id: starsClose2
fillMode: Image.Tile
source: 'starsClose.svg'
height: maxSceneSize.height
@ -129,17 +126,16 @@ Rectangle {
height: starsFar1.height + starsFar2.height
Image {
fillMode: Image.Tile
id: starsFar1
fillMode: Image.Tile
source: 'starsFar.svg'
height: maxSceneSize.height
width: maxSceneSize.width
}
Image {
fillMode: Image.Tile
id: starsFar2
fillMode: Image.Tile
source: 'starsFar.svg'
height: maxSceneSize.height
@ -173,8 +169,7 @@ Rectangle {
interval: 25000
repeat: true
onTriggered: {
moon.height = Math.floor(Math.random() * (45 - 200) + 200)
moon.height = Math.floor(Math.random() * (45 - 200) + 200);
moon.x = Math.floor(Math.random() * root.width);
moonShowupAnimation.start();
}
@ -187,7 +182,6 @@ Rectangle {
from: -moon.height
to: maxSceneSize.height + moon.height
}
}
Image {
@ -196,10 +190,15 @@ Rectangle {
mipmap: true
source: systemPalette.window.hslLightness > 0.5 ? "background.svg" : "background_dark.svg"
}
sourceSize {
height: maxSceneSize.height
width: maxSceneSize.width
Loader {
source: "sponsor/SponsoredBy.qml"
anchors {
bottom: parent.bottom
right: parent.right
margins: 10
}
}
@ -355,14 +354,15 @@ Rectangle {
duration: 10000
easing.type: Easing.InQuad
}
ScriptAction { script: root.state = "inAtmosphere" }
ScriptAction {
script: root.state = "inAtmosphere"
}
}
NumberAnimation {
target: smoke
property: "bottomMargin"
duration: 10000
easing.type: Easing.InQuad
}
NumberAnimation {
target: background
@ -387,7 +387,9 @@ Rectangle {
properties: "anchors.topMargin,anchors.bottomMargin"
duration: 5000
}
ScriptAction { script: root.state = "inSpace" }
ScriptAction {
script: root.state = "inSpace"
}
}
},
Transition {
@ -425,17 +427,20 @@ Rectangle {
onTriggered: {
switch (state) {
case "nearGround":
if(!transition1.running) return;
if (!transition1.running)
return;
state = "onGround";
state = "nearGround";
break;
case "inAtmosphere":
if(!transition2.running) return;
if (!transition2.running)
return;
state = "nearGround";
state = "inAtmosphere";
break;
case "inSpace":
if(!transition3.running) return;
if (!transition3.running)
return;
state = "inAtmosphere";
state = "inSpace";
}
@ -445,5 +450,4 @@ Rectangle {
onHeightChanged: {
sizeChangeTimeout.restart();
}
}

View File

@ -70,18 +70,5 @@ Item {
horizontalCenterOffset: -100
verticalCenterOffset: -57
}
}
Loader {
source: "sponsor/SponsoredBy.qml"
anchors {
bottom: parent.bottom
right: parent.right
margins: 10
}
}
}