2020-10-10 15:28:13 +00:00
|
|
|
import QtQuick 2.6
|
|
|
|
import Sailfish.Silica 1.0
|
|
|
|
|
2021-08-11 21:35:33 +00:00
|
|
|
import nl.netsoj.chris.Jellyfin 1.0 as J
|
2020-10-10 15:28:13 +00:00
|
|
|
|
2021-01-14 19:35:24 +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
|
|
|
|
}
|
|
|
|
|
2021-01-14 19:35:24 +00:00
|
|
|
RemoteImage {
|
2020-10-10 15:28:13 +00:00
|
|
|
id: image
|
2021-08-11 21:35:33 +00:00
|
|
|
source: apiClient.downloadUrl(itemId)
|
2020-10-10 15:28:13 +00:00
|
|
|
fillMode: Image.PreserveAspectFit
|
|
|
|
anchors.fill: parent
|
|
|
|
|
2021-01-14 19:35:24 +00:00
|
|
|
blurhash: itemData.imageBlurHashes["Primary"][itemData.imageTags["Primary"]]
|
|
|
|
aspectRatio: itemData.width / itemData.height
|
2020-10-10 15:28:13 +00:00
|
|
|
}
|
|
|
|
}
|