General update

This commit is contained in:
Digital Artifex
2026-08-15 10:01:22 -04:00
parent f69ba41046
commit a776997119
2 changed files with 72 additions and 47 deletions
+68 -44
View File
@@ -282,7 +282,6 @@ Item
anchors.fill: parent anchors.fill: parent
opacity: 0 opacity: 0
visible: opacity > 0.01 visible: opacity > 0.01
//model: videosModel.itemModel
Behavior on opacity { Behavior on opacity {
NumberAnimation NumberAnimation
@@ -298,7 +297,6 @@ Item
anchors.fill: parent anchors.fill: parent
opacity: 0 opacity: 0
visible: opacity > 0.01 visible: opacity > 0.01
//model: videosModel.itemModel
Behavior on opacity { Behavior on opacity {
NumberAnimation NumberAnimation
@@ -316,48 +314,83 @@ Item
} }
} }
FeaturedVideosPage Component
{ {
id: featuredVideosPage id: featuredVideosComponent
anchors.fill: parent
opacity: 0
visible: opacity > 0.01
Behavior on opacity { FeaturedVideosPage
NumberAnimation {
{ id: featuredVideosPage
duration: 250 anchors.fill: parent
opacity: 0
Behavior on opacity {
NumberAnimation
{
duration: 250
}
} }
Component.onCompleted: () => featuredVideosPage.opacity = 1
} }
} }
FeaturedPacksPage Component
{ {
id: featuredPacksPage id: featuredPacksComponent
anchors.fill: parent
opacity: 0
visible: opacity > 0.01
Behavior on opacity { FeaturedPacksPage
NumberAnimation {
id: featuredPacksPage
anchors.fill: parent
opacity: 0
Behavior on opacity
{ {
duration: 250 NumberAnimation
{
duration: 250
}
} }
Component.onCompleted: () => featuredPacksPage.opacity = 1
} }
} }
FeaturedImagesPage Component
{ {
id: featuredImagesPage id: featuredImagesComponent
FeaturedImagesPage
{
id: featuredImagesPage
anchors.fill: parent
opacity: 0
Behavior on opacity
{
NumberAnimation
{
duration: 250
}
}
Component.onCompleted: () => featuredImagesPage.opacity = 1
}
}
Item
{
id: featuredLoaderItem
anchors.fill: parent anchors.fill: parent
opacity: 0 opacity: 0
visible: opacity > 0.01 visible: opacity > 0.01
enabled: visible
Behavior on opacity { Loader
NumberAnimation {
{ id: featuredLoader
duration: 250 anchors.fill: parent
}
} }
} }
@@ -427,21 +460,24 @@ Item
function showFeaturedVideosPage() function showFeaturedVideosPage()
{ {
resultsLayout.opacity = 0 resultsLayout.opacity = 0
featuredVideosPage.opacity = 1 featuredLoaderItem.opacity = 1
featuredLoader.sourceComponent = featuredVideosComponent
popup = true popup = true
} }
function showFeaturedPacksPage() function showFeaturedPacksPage()
{ {
resultsLayout.opacity = 0 resultsLayout.opacity = 0
featuredPacksPage.opacity = 1 featuredLoaderItem.opacity = 1
featuredLoader.sourceComponent = featuredPacksComponent
popup = true popup = true
} }
function showFeaturedImagesPage() function showFeaturedImagesPage()
{ {
resultsLayout.opacity = 0 resultsLayout.opacity = 0
featuredImagesPage.opacity = 1 featuredLoaderItem.opacity = 1
featuredLoader.sourceComponent = featuredImagesComponent
popup = true popup = true
} }
@@ -496,25 +532,13 @@ Item
function closePopup() function closePopup()
{ {
if(featuredVideosPage.popup) if(featuredLoader.item && featuredLoader.item.popup)
{ {
featuredVideosPage.closePopup() featuredLoader.item.closePopup()
return
}
if(featuredImagesPage.popup)
{
featuredImagesPage.closePopup()
return
}
if(featuredPacksPage.popup)
{
featuredPacksPage.closePopup()
return return
} }
featuredVideosPage.opacity = 0 featuredLoaderItem.opacity = 0
featuredImagesPage.opacity = 0
featuredPacksPage.opacity = 0
viewMoreImagePopup.opacity = 0 viewMoreImagePopup.opacity = 0
viewMoreVideoPopup.opacity = 0 viewMoreVideoPopup.opacity = 0
viewMoreWallpaperPopup.opacity = 0 viewMoreWallpaperPopup.opacity = 0
+4 -3
View File
@@ -33,8 +33,8 @@ Item
{ {
id: resultDelegate id: resultDelegate
width: 256 width: resultWidth
height: 245 height: resultHeight
required property string name required property string name
required property string author required property string author
@@ -47,7 +47,8 @@ Item
SearchResultItem SearchResultItem
{ {
anchors.fill: parent anchors.fill: parent
title: parent.author title: parent.name
author: parent.author
description: parent.description description: parent.description
thumbnail: parent.thumbnail thumbnail: parent.thumbnail
uuid: parent.uuid uuid: parent.uuid