mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +00:00
Add downloaded indicator to EpisodeCell (#215)
This commit is contained in:
parent
52e7101472
commit
3974fc7003
1 changed files with 10 additions and 0 deletions
|
|
@ -149,6 +149,10 @@ private extension EpisodeCell {
|
||||||
episodeThumbnail
|
episodeThumbnail
|
||||||
episodeInfo
|
episodeInfo
|
||||||
Spacer()
|
Spacer()
|
||||||
|
if case .downloaded = downloadStatus {
|
||||||
|
downloadedIndicator
|
||||||
|
.padding(.trailing, 8)
|
||||||
|
}
|
||||||
CircularProgressBar(progress: currentProgress)
|
CircularProgressBar(progress: currentProgress)
|
||||||
.frame(width: 40, height: 40)
|
.frame(width: 40, height: 40)
|
||||||
.padding(.trailing, 4)
|
.padding(.trailing, 4)
|
||||||
|
|
@ -228,6 +232,12 @@ private extension EpisodeCell {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var downloadedIndicator: some View {
|
||||||
|
Image(systemName: "folder.fill")
|
||||||
|
.foregroundColor(.accentColor)
|
||||||
|
.font(.system(size: 18))
|
||||||
|
}
|
||||||
|
|
||||||
var contextMenuContent: some View {
|
var contextMenuContent: some View {
|
||||||
Group {
|
Group {
|
||||||
if progress <= 0.9 {
|
if progress <= 0.9 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue