1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-11-26 19:05:17 +00:00
harbour-sailfin/sailfish/qml/pages/itemdetails/PhotoPage.qml

36 lines
767 B
QML
Raw Normal View History

2020-10-10 15:28:13 +00:00
import QtQuick 2.6
import Sailfish.Silica 1.0
import nl.netsoj.chris.Jellyfin 1.0
BaseDetailPage {
id: pageRoot
navigationStyle: PageNavigation.Vertical
Rectangle {
anchors.fill: parent
color: Theme.overlayBackgroundColor
}
PageHeader {
title: itemData.name
titleColor: Theme.primaryColor
}
Image {
id: image
source: ApiClient.downloadUrl(itemId)
fillMode: Image.PreserveAspectFit
anchors.fill: parent
opacity: status == Image.Ready ? 1.0 : 0.0
Behavior on opacity { FadeAnimator {}}
}
BusyIndicator {
running: image.status == Image.Loading
size: BusyIndicatorSize.Large
anchors.centerIn: parent
}
}