mirror of
https://github.com/yattee/yattee.git
synced 2026-05-13 19:05:03 +00:00
Use settings container layout for tvOS Open URL and Remote Control
Wrap OpenLinkView and RemoteControlContentView in TVSettingsContainer on tvOS so they get the same left sidebar with large SF Symbol icon and title as settings detail screens, for visual consistency.
This commit is contained in:
@@ -752,8 +752,13 @@ struct UnifiedTabView: View {
|
|||||||
case .openURL:
|
case .openURL:
|
||||||
Tab(value: SidebarItem.openURL) {
|
Tab(value: SidebarItem.openURL) {
|
||||||
NavigationStack(path: $openURLPath) {
|
NavigationStack(path: $openURLPath) {
|
||||||
OpenLinkView()
|
TVSettingsContainer(
|
||||||
.withNavigationDestinations()
|
systemImage: SidebarItem.openURL.systemImage,
|
||||||
|
title: SidebarItem.openURL.title
|
||||||
|
) {
|
||||||
|
OpenLinkView()
|
||||||
|
}
|
||||||
|
.withNavigationDestinations()
|
||||||
}
|
}
|
||||||
} label: {
|
} label: {
|
||||||
Label(SidebarItem.openURL.title, systemImage: SidebarItem.openURL.systemImage)
|
Label(SidebarItem.openURL.title, systemImage: SidebarItem.openURL.systemImage)
|
||||||
@@ -762,9 +767,14 @@ struct UnifiedTabView: View {
|
|||||||
case .remoteControl:
|
case .remoteControl:
|
||||||
Tab(value: SidebarItem.remoteControl) {
|
Tab(value: SidebarItem.remoteControl) {
|
||||||
NavigationStack(path: $remoteControlPath) {
|
NavigationStack(path: $remoteControlPath) {
|
||||||
RemoteControlContentView(navigationStyle: .link)
|
TVSettingsContainer(
|
||||||
.navigationTitle(String(localized: "remoteControl.title"))
|
systemImage: SidebarItem.remoteControl.systemImage,
|
||||||
.withNavigationDestinations()
|
title: SidebarItem.remoteControl.title
|
||||||
|
) {
|
||||||
|
RemoteControlContentView(navigationStyle: .link)
|
||||||
|
.navigationTitle(String(localized: "remoteControl.title"))
|
||||||
|
}
|
||||||
|
.withNavigationDestinations()
|
||||||
}
|
}
|
||||||
} label: {
|
} label: {
|
||||||
Label(SidebarItem.remoteControl.title, systemImage: SidebarItem.remoteControl.systemImage)
|
Label(SidebarItem.remoteControl.title, systemImage: SidebarItem.remoteControl.systemImage)
|
||||||
|
|||||||
Reference in New Issue
Block a user