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

View File

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