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

Commit

Permalink
Add icon to better separate videos from channels
Browse files Browse the repository at this point in the history
  • Loading branch information
direc85 committed Feb 12, 2019
1 parent d578a58 commit 74f9f4e
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions qml/common/YTListItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,27 @@ ListItem {
wrapMode: Text.Wrap
anchors {
left: thumbnail.right
right: parent.right
right: imageChannel.visible ? imageChannel.right : parent.right
leftMargin: Theme.paddingSmall
rightMargin: Theme.paddingSmall
verticalCenter: parent.verticalCenter
}
font {
family: Theme.fontFamily
pixelSize: Theme.fontSizeExtraSmall
pixelSize: Theme.fontSizeSmall
}
}

Image {
id: imageChannel
source: "image://theme/icon-m-media-artists"
visible: youtubeId.kind === "youtube#channel"
width: Theme.iconSizeMedium
height: Theme.iconSizeMedium
anchors {
right: parent.right
rightMargin: Theme.paddingSmall
verticalCenter: parent.verticalCenter
}
}

Expand Down

0 comments on commit 74f9f4e

Please sign in to comment.