From d578a588fcd1cebd6579abf82346d99a7e379b3c Mon Sep 17 00:00:00 2001 From: Matti Viljanen Date: Tue, 12 Feb 2019 14:27:40 +0200 Subject: [PATCH] Adjust time display --- qml/common/YTListItem.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qml/common/YTListItem.qml b/qml/common/YTListItem.qml index 0a99bd4..dc41378 100644 --- a/qml/common/YTListItem.qml +++ b/qml/common/YTListItem.qml @@ -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 } }