mirror of
https://github.com/yattee/yattee.git
synced 2026-06-06 23:04:19 +00:00
Polish AddSourceView layout on tvOS
Add a TVSourceRowLabelStyle for consistent icon/text spacing, switch the Scan Network button to TVFormRowButtonStyle so it matches the NavigationLink rows, and drop the duplicate navigationTitle in AddWebDAV/AddSMB views since the title is already shown in the TVSidebarDetailContainer sidebar.
This commit is contained in:
@@ -120,6 +120,9 @@ struct AddSourceView: View {
|
||||
#endif
|
||||
} label: {
|
||||
Label(String(localized: "sources.addWebDAV"), systemImage: "externaldrive.connected.to.line.below")
|
||||
#if os(tvOS)
|
||||
.labelStyle(TVSourceRowLabelStyle())
|
||||
#endif
|
||||
}
|
||||
|
||||
NavigationLink {
|
||||
@@ -135,6 +138,9 @@ struct AddSourceView: View {
|
||||
#endif
|
||||
} label: {
|
||||
Label(String(localized: "sources.addSMB"), systemImage: "server.rack")
|
||||
#if os(tvOS)
|
||||
.labelStyle(TVSourceRowLabelStyle())
|
||||
#endif
|
||||
}
|
||||
|
||||
NavigationLink {
|
||||
@@ -150,6 +156,9 @@ struct AddSourceView: View {
|
||||
#endif
|
||||
} label: {
|
||||
Label(String(localized: "sources.addRemoteServer"), systemImage: "globe")
|
||||
#if os(tvOS)
|
||||
.labelStyle(TVSourceRowLabelStyle())
|
||||
#endif
|
||||
}
|
||||
|
||||
NavigationLink {
|
||||
@@ -178,6 +187,9 @@ struct AddSourceView: View {
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.frame(width: 24, height: 24)
|
||||
}
|
||||
#if os(tvOS)
|
||||
.labelStyle(TVSourceRowLabelStyle())
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,9 +199,12 @@ struct AddSourceView: View {
|
||||
showingNetworkDiscovery = true
|
||||
} label: {
|
||||
Label(String(localized: "discovery.scanNetwork"), systemImage: "wifi")
|
||||
#if os(tvOS)
|
||||
.labelStyle(TVSourceRowLabelStyle())
|
||||
#endif
|
||||
}
|
||||
#if os(tvOS)
|
||||
.buttonStyle(TVSettingsButtonStyle())
|
||||
.buttonStyle(TVFormRowButtonStyle())
|
||||
#endif
|
||||
} footer: {
|
||||
Text(String(localized: "sources.footer.discovery"))
|
||||
|
||||
Reference in New Issue
Block a user