1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-05 18:22:46 +00:00

Repair broken userdata.

The UserData of an item was not displaying, this should re-add it.
This commit is contained in:
Chris Josten 2021-08-17 16:43:17 +02:00
parent 7b6c272aa9
commit bb1e3ea21d
13 changed files with 79 additions and 41 deletions

View file

@ -79,7 +79,7 @@ BaseDetailPage {
shimColor: Theme.overlayBackgroundColor
shimOpacity: Theme.opacityOverlay
//width: model.userData.PlayedPercentage * parent.width / 100
visible: episodeProgress.width > 0 || model.userData.played || model.userData.isFavorite // It doesn't look nice when it's visible on every image
visible: episodeProgress.width > 0 || model.userDataPlayed || model.userDataFavorite // It doesn't look nice when it's visible on every image
}
Rectangle {
@ -89,7 +89,7 @@ BaseDetailPage {
bottom: parent.bottom
}
height: Theme.paddingMedium
width: model.userData.playedPercentage * parent.width / 100
width: model.userDataPlayedPercentage * parent.width / 100
color: Theme.highlightColor
}
Row {
@ -103,12 +103,12 @@ BaseDetailPage {
Icon {
source: "image://theme/icon-s-checkmark"
visible: model.userData.played
visible: model.userDataPlayed
}
Icon {
source: "image://theme/icon-s-favorite"
visible: model.userData.isFavorite
visible: model.userDataFavorite
}
}
}