mirror of
https://github.com/yattee/yattee.git
synced 2026-05-12 18:35:05 +00:00
Move Add Source button to toolbar in macOS Sources settings
This commit is contained in:
@@ -74,7 +74,7 @@ struct SourcesListView: View {
|
|||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
#endif
|
#endif
|
||||||
#if os(iOS)
|
#if os(iOS) || os(macOS)
|
||||||
.toolbar {
|
.toolbar {
|
||||||
ToolbarItem(placement: .primaryAction) {
|
ToolbarItem(placement: .primaryAction) {
|
||||||
Button {
|
Button {
|
||||||
@@ -156,20 +156,6 @@ struct SourcesListView: View {
|
|||||||
.overlay(
|
.overlay(
|
||||||
ScrollView {
|
ScrollView {
|
||||||
LazyVStack(spacing: 0) {
|
LazyVStack(spacing: 0) {
|
||||||
#if os(macOS)
|
|
||||||
HStack {
|
|
||||||
Spacer()
|
|
||||||
Button {
|
|
||||||
showingAddSheet = true
|
|
||||||
} label: {
|
|
||||||
Label(String(localized: "sources.addSource"), systemImage: "plus")
|
|
||||||
}
|
|
||||||
.help(String(localized: "sources.addSource"))
|
|
||||||
.accessibilityIdentifier("sources.addButton")
|
|
||||||
}
|
|
||||||
.padding(.horizontal, 16)
|
|
||||||
.padding(.vertical, 8)
|
|
||||||
#endif
|
|
||||||
remoteServersSection
|
remoteServersSection
|
||||||
fileSourcesSection
|
fileSourcesSection
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user