Skip to content

Commit

Permalink
+ Added snowflakes
Browse files Browse the repository at this point in the history
* Increase version
  • Loading branch information
trueromanus committed Dec 16, 2023
1 parent 2f5dfe8 commit e6080ad
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Classes/globalconstant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
QString AnilibriaImagesPath = "https://anilibriaqt.anilib.top";
QString AnilibriaApiPath = "https://anilibriaqt.anilib.top/";
bool IsPortable = false;
QString ApplicationVersion = "1.2.13";

QString StatisticsSectionId = "statistics";
QString NewInFavoritesSectionId = "newinfavorites";
Expand Down
2 changes: 1 addition & 1 deletion src/globalconstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extern QString AnilibriaApiPath;

extern bool IsPortable;

const QString ApplicationVersion = "1.2.12";
extern QString ApplicationVersion;

const int HistoryReleaseCardMode = 0;

Expand Down
52 changes: 51 additions & 1 deletion src/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import Anilibria.Services 1.0
import Anilibria.ListModels 1.0
import Anilibria.ViewModels 1.0
import CustomStyle 1.0
import QtQuick.Particles 2.13
import "Views"
import "Controls"

Expand All @@ -36,7 +37,7 @@ ApplicationWindow {
height: 600
minimumWidth: 300
minimumHeight: 300
title: qsTr("AniLibria.Qt")
title: qsTr("AniLibria.Qt CE")
font.capitalization: Font.MixedCase
property var userModel: ({})
property string tempTorrentPath: ""
Expand Down Expand Up @@ -1282,6 +1283,17 @@ ApplicationWindow {
onReleasesPageToNavigated: {
releases.navigateTo();
}
onIsOnlinePlayerPageVisibleChanged: {
if (mainViewModel.isOnlinePlayerPageVisible) {
particleEffect.visible = false;
particleSystem.reset();
emitter.reset();
particleSystem.running = false;
} else {
particleEffect.visible = true;
particleSystem.running = true;
}
}
onChangeReleasesParameters: {
if (!parameters.length) {
releasesViewModel.closeReleaseCard();
Expand Down Expand Up @@ -1425,4 +1437,42 @@ ApplicationWindow {
property string backgroundsPath: Qt.resolvedUrl("../Assets/Backgrounds/")
property string iconsPath: Qt.resolvedUrl("../Assets/Icons/")
}

Item {
id: particleEffect
anchors.fill: parent

ParticleSystem {
id: particleSystem
}

Emitter {
id: emitter
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width
height: 80
system: particleSystem
emitRate: 1
lifeSpan: 25000
lifeSpanVariation: 10
size: 15
endSize: 20
velocity: AngleDirection {
angle: 90
angleVariation: 40
magnitude: 30
magnitudeVariation: 10
}
}

ImageParticle {
source: assetsLocation.iconsPath + "snowflake.svg"
system: particleSystem
rotation: 15
rotationVariation: 5
rotationVelocity: 60
rotationVelocityVariation: 15
}
}
}

0 comments on commit e6080ad

Please sign in to comment.