Add downloaded icon to indicate downloaded episodes

This commit is contained in:
Thomas Perl 2014-02-07 00:36:03 +01:00
parent b595e99cd9
commit 24cb85f1b7
2 changed files with 15 additions and 2 deletions

View file

@ -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'
}
}
}

BIN
touch/icons/cd_32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B