Added Featured List Pages

This commit is contained in:
Digital Artifex
2026-08-13 08:12:45 -04:00
parent 69743883d7
commit 3d0655edd1
10 changed files with 172 additions and 3 deletions
+3
View File
@@ -18,6 +18,9 @@ qt6_add_qml_module(KomplexHubContent
"pages/UserProfilePage.qml"
"pages/WallpaperSettingsPage.qml"
"pages/VideoSearchPage.qml"
QML_FILES pages/FeaturedVideosPage.qml
QML_FILES pages/FeaturedPacksPage.qml
QML_FILES pages/FeaturedImagesPage.qml
)
+100
View File
@@ -116,6 +116,11 @@ Item
}
}
}
onViewMoreTriggered: () =>
{
showFeaturedPacksPage()
}
}
Text
@@ -168,6 +173,11 @@ Item
}
}
}
onViewMoreTriggered: () =>
{
showFeaturedImagesPage()
}
}
Text
@@ -215,6 +225,11 @@ Item
onViewMoreTriggered:() => showVideoPopup(parent.index)
}
}
onViewMoreTriggered: () =>
{
showFeaturedVideosPage()
}
}
/* spacer */
@@ -301,6 +316,51 @@ Item
}
}
FeaturedVideosPage
{
id: featuredVideosPage
anchors.fill: parent
opacity: 0
visible: opacity > 0.01
Behavior on opacity {
NumberAnimation
{
duration: 250
}
}
}
FeaturedPacksPage
{
id: featuredPacksPage
anchors.fill: parent
opacity: 0
visible: opacity > 0.01
Behavior on opacity {
NumberAnimation
{
duration: 250
}
}
}
FeaturedImagesPage
{
id: featuredImagesPage
anchors.fill: parent
opacity: 0
visible: opacity > 0.01
Behavior on opacity {
NumberAnimation
{
duration: 250
}
}
}
states: [
State {
name: "loading"
@@ -364,6 +424,27 @@ Item
}
]
function showFeaturedVideosPage()
{
resultsLayout.opacity = 0
featuredVideosPage.opacity = 1
popup = true
}
function showFeaturedPacksPage()
{
resultsLayout.opacity = 0
featuredPacksPage.opacity = 1
popup = true
}
function showFeaturedImagesPage()
{
resultsLayout.opacity = 0
featuredImagesPage.opacity = 1
popup = true
}
function showImagePopup(index)
{
viewMoreImagePopup.author = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.AuthorRole)
@@ -415,6 +496,25 @@ Item
function closePopup()
{
if(featuredVideosPage.popup)
{
featuredVideosPage.closePopup()
return
}
if(featuredImagesPage.popup)
{
featuredImagesPage.closePopup()
return
}
if(featuredPacksPage.popup)
{
featuredPacksPage.closePopup()
return
}
featuredVideosPage.opacity = 0
featuredImagesPage.opacity = 0
featuredPacksPage.opacity = 0
viewMoreImagePopup.opacity = 0
viewMoreVideoPopup.opacity = 0
viewMoreWallpaperPopup.opacity = 0