Add downloaded icon to indicate downloaded episodes
This commit is contained in:
parent
b595e99cd9
commit
24cb85f1b7
2 changed files with 15 additions and 2 deletions
|
@ -150,7 +150,7 @@ Item {
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: downloadedIcon.visible ? downloadedIcon.left : parent.right
|
||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
margins: 30 * pgst.scalef
|
margins: 30 * pgst.scalef
|
||||||
}
|
}
|
||||||
|
@ -163,7 +163,7 @@ Item {
|
||||||
return Constants.colors.playback;
|
return Constants.colors.playback;
|
||||||
} else if (progress > 0) {
|
} else if (progress > 0) {
|
||||||
return Constants.colors.download;
|
return Constants.colors.download;
|
||||||
} else if (isNew) {
|
} else if (isNew && downloadState != Constants.state.downloaded) {
|
||||||
return Constants.colors.fresh;
|
return Constants.colors.fresh;
|
||||||
} else {
|
} else {
|
||||||
return 'white';
|
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
BIN
touch/icons/cd_32x32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 394 B |
Loading…
Add table
Add a link
Reference in a new issue