mirror of
https://github.com/cranci1/Sora.git
synced 2026-01-11 20:10:24 +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
|
||||
episodeInfo
|
||||
Spacer()
|
||||
if case .downloaded = downloadStatus {
|
||||
downloadedIndicator
|
||||
.padding(.trailing, 8)
|
||||
}
|
||||
CircularProgressBar(progress: currentProgress)
|
||||
.frame(width: 40, height: 40)
|
||||
.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 {
|
||||
Group {
|
||||
if progress <= 0.9 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue