Commit 58c9bcc4 authored by Camilo higuita's avatar Camilo higuita

add holder animation for loading images

parent 8e557079
......@@ -14,6 +14,7 @@
<file>assets/Rainbow.png</file>
<file>assets/BugSearch.png</file>
<file>assets/pix.svg</file>
<file>assets/animat-image-color.gif</file>
</qresource>
<qresource prefix="/"/>
</RCC>
......@@ -178,20 +178,19 @@ Maui.Page
}
]
Maui.Holder
{
id: holder
emoji: "qrc:/img/assets/Rainbow.png"
emoji: viewer.count === 0 ? "qrc:/img/assets/Rainbow.png" : "qrc:/img/assets/animat-image-color.gif"
isMask: false
title : "No Pic!"
body: "Open an image from your collection"
emojiSize: iconSizes.huge
visible: viewer.count === 0
isGif : viewer.currentItem.status !== Image.Ready
title : viewer.count === 0 ? qsTr("No Pic!") : qsTr("Loading...")
body: viewer.count === 0 ? qsTr("Open an image from your collection") : qsTr("Your pic is almost ready")
emojiSize: isGif ? iconSizes.enormous : iconSizes.huge
visible: viewer.count === 0 || viewer.currentItem.status !== Image.Ready
colorScheme.backgroundColor: viewerForegroundColor
}
footer: Maui.TagsBar
{
id: tagBar
......
......@@ -15,6 +15,7 @@ Maui.Page
property alias count : viewerList.count
property alias currentIndex : viewerList.currentIndex
property alias currentItem: viewerList.currentItem
clip: true
focus: true
......
......@@ -9,6 +9,8 @@ ItemDelegate
property int itemWidth : parent.width
property int itemHeight : parent.height
property alias status : pic.status
height: itemHeight
width: itemWidth
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment