mirror of
https://github.com/yattee/yattee.git
synced 2026-06-24 15:44:20 +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:
@@ -144,6 +144,18 @@ struct TVSettingsToggle: View {
|
||||
}
|
||||
}
|
||||
|
||||
/// Label style for source rows - explicit icon/text spacing
|
||||
struct TVSourceRowLabelStyle: LabelStyle {
|
||||
func makeBody(configuration: Configuration) -> some View {
|
||||
HStack(spacing: 20) {
|
||||
configuration.icon
|
||||
.frame(width: 36, height: 36)
|
||||
configuration.title
|
||||
Spacer(minLength: 0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Button style for form rows (toggles, pickers) - matches form appearance
|
||||
struct TVFormRowButtonStyle: ButtonStyle {
|
||||
@Environment(\.isFocused) private var isFocused
|
||||
|
||||
Reference in New Issue
Block a user