1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-12-23 22:45:17 +00:00
harbour-sailfin/sailfish/qml/pages/itemdetails/PhotoPage.qml

32 lines
685 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 as J
2020-10-10 15:28:13 +00:00
import "../../components"
2020-10-10 15:28:13 +00:00
BaseDetailPage {
id: pageRoot
navigationStyle: PageNavigation.Vertical
Rectangle {
anchors.fill: parent
color: Theme.overlayBackgroundColor
}
PageHeader {
title: itemData.name
titleColor: Theme.primaryColor
}
RemoteImage {
2020-10-10 15:28:13 +00:00
id: image
source: apiClient.downloadUrl(itemId)
2020-10-10 15:28:13 +00:00
fillMode: Image.PreserveAspectFit
anchors.fill: parent
blurhash: itemData.imageBlurHashes["Primary"][itemData.imageTags["Primary"]]
aspectRatio: itemData.width / itemData.height
2020-10-10 15:28:13 +00:00
}
}