Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Adjust time display
Browse files Browse the repository at this point in the history
  • Loading branch information
direc85 committed Feb 12, 2019
1 parent 4819e78 commit d578a58
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions qml/common/YTListItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,19 @@ ListItem {
Rectangle {
anchors.bottom: parent.bottom
anchors.right: parent.right
visible: (ytItem.duration.length > 0) &&
parent.status === Image.Ready
visible: (ytItem.duration.length > 0) && parent.status === Image.Ready
color: "black"
height: childrenRect.height
width: childrenRect.width + 2 * Theme.paddingSmall
opacity: 0.8

Label {
x: Theme.paddingSmall
text: ytItem.duration.length > 0 ?
(new DJS.Duration(ytItem.duration)).asClock() : ""
color: Theme.primaryColor
font.pixelSize: Theme.fontSizeExtraSmall * 0.8
font.pixelSize: Theme.fontSizeExtraSmall * 0.7
font.weight: Font.Bold
horizontalAlignment: Text.AlignHCenter
}
}
Expand Down

0 comments on commit d578a58

Please sign in to comment.