mirror of
https://github.com/yattee/yattee.git
synced 2026-05-12 18:35:05 +00:00
Show video title and channel in tvOS sidebar Now Playing
This commit is contained in:
@@ -9,6 +9,16 @@
|
|||||||
},
|
},
|
||||||
"%@" : {
|
"%@" : {
|
||||||
|
|
||||||
|
},
|
||||||
|
"%@\n%@" : {
|
||||||
|
"localizations" : {
|
||||||
|
"en" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "new",
|
||||||
|
"value" : "%1$@\n%2$@"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"%@ - %@" : {
|
"%@ - %@" : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
@@ -3885,6 +3895,28 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"home.sections.layout.grid" : {
|
||||||
|
"comment" : "Grid layout option for library sections",
|
||||||
|
"localizations" : {
|
||||||
|
"en" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "Grid"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"home.sections.layout.list" : {
|
||||||
|
"comment" : "List layout option for library sections",
|
||||||
|
"localizations" : {
|
||||||
|
"en" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "List"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"home.settings.availableSections.empty" : {
|
"home.settings.availableSections.empty" : {
|
||||||
"comment" : "Empty state message for available sections section",
|
"comment" : "Empty state message for available sections section",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
@@ -4014,17 +4046,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home.settings.shortcuts.header" : {
|
|
||||||
"comment" : "Header for shortcuts section in library settings",
|
|
||||||
"localizations" : {
|
|
||||||
"en" : {
|
|
||||||
"stringUnit" : {
|
|
||||||
"state" : "translated",
|
|
||||||
"value" : "Shortcuts"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"home.settings.sections.layout" : {
|
"home.settings.sections.layout" : {
|
||||||
"comment" : "Label for sections layout picker in library settings",
|
"comment" : "Label for sections layout picker in library settings",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
@@ -4036,6 +4057,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"home.settings.shortcuts.header" : {
|
||||||
|
"comment" : "Header for shortcuts section in library settings",
|
||||||
|
"localizations" : {
|
||||||
|
"en" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "Shortcuts"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"home.settings.shortcuts.layout" : {
|
"home.settings.shortcuts.layout" : {
|
||||||
"comment" : "Label for shortcuts layout picker in library settings",
|
"comment" : "Label for shortcuts layout picker in library settings",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
@@ -4047,28 +4079,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home.sections.layout.grid" : {
|
|
||||||
"comment" : "Grid layout option for library sections",
|
|
||||||
"localizations" : {
|
|
||||||
"en" : {
|
|
||||||
"stringUnit" : {
|
|
||||||
"state" : "translated",
|
|
||||||
"value" : "Grid"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"home.sections.layout.list" : {
|
|
||||||
"comment" : "List layout option for library sections",
|
|
||||||
"localizations" : {
|
|
||||||
"en" : {
|
|
||||||
"stringUnit" : {
|
|
||||||
"state" : "translated",
|
|
||||||
"value" : "List"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"home.settings.sourceDisabled" : {
|
"home.settings.sourceDisabled" : {
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -6860,17 +6870,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"player.previous" : {
|
|
||||||
"comment" : "Previous track button",
|
|
||||||
"localizations" : {
|
|
||||||
"en" : {
|
|
||||||
"stringUnit" : {
|
|
||||||
"state" : "translated",
|
|
||||||
"value" : "Previous"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"player.noDescription" : {
|
"player.noDescription" : {
|
||||||
"comment" : "Shown when video has no description",
|
"comment" : "Shown when video has no description",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
@@ -6906,6 +6905,17 @@
|
|||||||
},
|
},
|
||||||
"player.playPauseButton" : {
|
"player.playPauseButton" : {
|
||||||
|
|
||||||
|
},
|
||||||
|
"player.previous" : {
|
||||||
|
"comment" : "Previous track button",
|
||||||
|
"localizations" : {
|
||||||
|
"en" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "Previous"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"player.quality.audioFromVideo" : {
|
"player.quality.audioFromVideo" : {
|
||||||
"comment" : "Message shown when audio tab is selected but current stream is muxed",
|
"comment" : "Message shown when audio tab is selected but current stream is muxed",
|
||||||
|
|||||||
@@ -640,7 +640,8 @@ struct UnifiedTabView: View {
|
|||||||
@TabContentBuilder<SidebarItem>
|
@TabContentBuilder<SidebarItem>
|
||||||
private var mainTabs: some TabContent<SidebarItem> {
|
private var mainTabs: some TabContent<SidebarItem> {
|
||||||
// Now Playing (only shown when video is playing and player collapsed)
|
// Now Playing (only shown when video is playing and player collapsed)
|
||||||
if shouldShowNowPlaying {
|
if shouldShowNowPlaying,
|
||||||
|
let currentVideo = appEnvironment?.playerService.state.currentVideo {
|
||||||
Tab(value: SidebarItem.nowPlaying) {
|
Tab(value: SidebarItem.nowPlaying) {
|
||||||
Color.clear
|
Color.clear
|
||||||
.onAppear {
|
.onAppear {
|
||||||
@@ -649,7 +650,7 @@ struct UnifiedTabView: View {
|
|||||||
selection = .home
|
selection = .home
|
||||||
}
|
}
|
||||||
} label: {
|
} label: {
|
||||||
Label(SidebarItem.nowPlaying.title, systemImage: SidebarItem.nowPlaying.systemImage)
|
Label("\(currentVideo.title)\n\(currentVideo.author.name)", systemImage: SidebarItem.nowPlaying.systemImage)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user