1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-11-23 01:35:18 +00:00
harbour-sailfin/sailfish/qml/pages/itemdetails/PhotoPage.qml

36 lines
767 B
QML

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
}
}