Add back history view cover photos
This commit is contained in:
11 files changed
+476
-28
No files matched your search
@@ -38,19 +38,32 @@ Rectangle {
|
||||
anchors.bottomMargin: 12
|
||||
spacing: 8
|
||||
|
||||
Image {
|
||||
id: coverImage
|
||||
Item {
|
||||
id: coverSlot
|
||||
visible: filePath !== ""
|
||||
width: 60
|
||||
height: 80
|
||||
source: coverImageUrl
|
||||
fillMode: Image.PreserveAspectFit
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
Image {
|
||||
anchors.fill: parent
|
||||
source: filePath !== "" ? ("image://fileicon/" + filePath) : ""
|
||||
fillMode: Image.PreserveAspectFit
|
||||
visible: coverImage.status !== Image.Ready
|
||||
}
|
||||
|
||||
Image {
|
||||
id: coverImage
|
||||
anchors.fill: parent
|
||||
source: coverImageUrl
|
||||
fillMode: Image.PreserveAspectFit
|
||||
visible: status === Image.Ready
|
||||
}
|
||||
}
|
||||
|
||||
Column {
|
||||
id: bookInfoCol
|
||||
width: parent.width - removeBtn.width - parent.spacing - (coverImage.visible ? coverImage.width + 8 : 0)
|
||||
width: parent.width - removeBtn.width - parent.spacing - (coverSlot.visible ? coverSlot.width + parent.spacing : 0)
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
spacing: 3
|
||||
|
||||
|
||||
Reference in new issue
Block a user