From 24cb85f1b79923e424ccb74792fb67775017467d Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Fri, 7 Feb 2014 00:36:03 +0100 Subject: [PATCH] Add downloaded icon to indicate downloaded episodes --- touch/EpisodeItem.qml | 17 +++++++++++++++-- touch/icons/cd_32x32.png | Bin 0 -> 394 bytes 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 touch/icons/cd_32x32.png diff --git a/touch/EpisodeItem.qml b/touch/EpisodeItem.qml index e4f99a4..17ab321 100644 --- a/touch/EpisodeItem.qml +++ b/touch/EpisodeItem.qml @@ -150,7 +150,7 @@ Item { anchors { left: parent.left - right: parent.right + right: downloadedIcon.visible ? downloadedIcon.left : parent.right verticalCenter: parent.verticalCenter margins: 30 * pgst.scalef } @@ -163,7 +163,7 @@ Item { return Constants.colors.playback; } else if (progress > 0) { return Constants.colors.download; - } else if (isNew) { + } else if (isNew && downloadState != Constants.state.downloaded) { return Constants.colors.fresh; } else { return 'white'; @@ -178,5 +178,18 @@ Item { } } } + + Image { + id: downloadedIcon + + anchors { + right: parent.right + margins: 30 * pgst.scalef + verticalCenter: parent.verticalCenter + } + + visible: downloadState == Constants.state.downloaded + source: 'icons/cd_32x32.png' + } } } diff --git a/touch/icons/cd_32x32.png b/touch/icons/cd_32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..ec096c8756ce573000f029eb42bd72f3a0df7195 GIT binary patch literal 394 zcmV;50d@X~P)759*9$_F-q?A5cMW%55j?E)IQIB)E^WpK&DT?FAN?-syM@S5C&<)=`|FJ9p`q5Cs&;N zfosE2;KUgSvsyA#tR&ep672pwRO$F#HFq(I0@snb)`tR4AyMEkGM7v0z68#kkP=ZN z(j4H_^9Qnu7KC9-nwK^l%J8X}=n6aWAK07*qoM6N<$f@z7O>Hq)$ literal 0 HcmV?d00001