From d7a661d7eb6ef91237810e1bbe6ca5217f0225b6 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Sat, 2 Mar 2013 14:47:58 +0200 Subject: [PATCH] QML UI: More subtle indication of new episodes in podcast --- share/gpodder/ui/qml/PodcastItem.qml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/share/gpodder/ui/qml/PodcastItem.qml b/share/gpodder/ui/qml/PodcastItem.qml index a2523e734..fc6c159f9 100644 --- a/share/gpodder/ui/qml/PodcastItem.qml +++ b/share/gpodder/ui/qml/PodcastItem.qml @@ -59,19 +59,33 @@ SelectableItem { height: width sourceSize.width: width sourceSize.height: height + clip: true anchors { verticalCenter: parent.verticalCenter left: counterBox.right leftMargin: Config.smallSpacing } + + Rectangle { + anchors { + horizontalCenter: parent.right + verticalCenter: parent.bottom + } + opacity: .5 + color: Config.newColor + visible: counters.newEpisodes > 0 + width: parent.width * .6 + height: width + rotation: 45 + } } Label { id: titleBox text: modelData.qtitle - color: (counters.newEpisodes > 0)?Config.newColor:"white" + color: 'white' anchors { verticalCenter: parent.verticalCenter