mirror of
https://github.com/yattee/yattee.git
synced 2026-02-19 09:19:46 +00:00
Update media browser view options sheet layout
This commit is contained in:
@@ -4908,6 +4908,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mediaBrowser.viewOptions.filters" : {
|
"mediaBrowser.viewOptions.filters" : {
|
||||||
|
"extractionState" : "stale",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"en" : {
|
"en" : {
|
||||||
"stringUnit" : {
|
"stringUnit" : {
|
||||||
@@ -11299,6 +11300,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"settings.notifications.disableAll" : {
|
||||||
|
"comment" : "Button to disable notifications for all channels",
|
||||||
|
"localizations" : {
|
||||||
|
"en" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "Disable All"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"settings.notifications.enable" : {
|
"settings.notifications.enable" : {
|
||||||
"comment" : "Toggle to enable background notifications",
|
"comment" : "Toggle to enable background notifications",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
@@ -11310,6 +11322,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"settings.notifications.enableAll" : {
|
||||||
|
"comment" : "Button to enable notifications for all channels",
|
||||||
|
"localizations" : {
|
||||||
|
"en" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "Enable All"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"settings.notifications.footer" : {
|
"settings.notifications.footer" : {
|
||||||
"comment" : "Description for notifications toggle",
|
"comment" : "Description for notifications toggle",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
@@ -11354,28 +11377,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings.notifications.disableAll" : {
|
|
||||||
"comment" : "Button to disable notifications for all channels",
|
|
||||||
"localizations" : {
|
|
||||||
"en" : {
|
|
||||||
"stringUnit" : {
|
|
||||||
"state" : "translated",
|
|
||||||
"value" : "Disable All"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"settings.notifications.enableAll" : {
|
|
||||||
"comment" : "Button to enable notifications for all channels",
|
|
||||||
"localizations" : {
|
|
||||||
"en" : {
|
|
||||||
"stringUnit" : {
|
|
||||||
"state" : "translated",
|
|
||||||
"value" : "Enable All"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"settings.notifications.noSubscriptions.description" : {
|
"settings.notifications.noSubscriptions.description" : {
|
||||||
"comment" : "Description when no subscriptions exist",
|
"comment" : "Description when no subscriptions exist",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
|
|||||||
@@ -24,17 +24,14 @@ struct MediaBrowserViewOptionsSheet: View {
|
|||||||
NavigationStack {
|
NavigationStack {
|
||||||
Form {
|
Form {
|
||||||
Section {
|
Section {
|
||||||
|
Toggle("mediaBrowser.viewOptions.showOnlyPlayable", isOn: $showOnlyPlayable)
|
||||||
Picker("mediaBrowser.viewOptions.sortBy", selection: $sortOrder) {
|
Picker("mediaBrowser.viewOptions.sortBy", selection: $sortOrder) {
|
||||||
ForEach(availableSortOptions) { order in
|
ForEach(availableSortOptions) { order in
|
||||||
Label(order.displayName, systemImage: order.systemImage)
|
Label(order.displayName, systemImage: order.systemImage)
|
||||||
.tag(order)
|
.tag(order)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} header: {
|
|
||||||
Text("mediaBrowser.viewOptions.sortBy")
|
|
||||||
}
|
|
||||||
|
|
||||||
Section {
|
|
||||||
Picker("mediaBrowser.viewOptions.order", selection: $sortAscending) {
|
Picker("mediaBrowser.viewOptions.order", selection: $sortAscending) {
|
||||||
Label(String(localized: "mediaBrowser.viewOptions.ascending"), systemImage: "arrow.up")
|
Label(String(localized: "mediaBrowser.viewOptions.ascending"), systemImage: "arrow.up")
|
||||||
.tag(true)
|
.tag(true)
|
||||||
@@ -44,14 +41,6 @@ struct MediaBrowserViewOptionsSheet: View {
|
|||||||
.pickerStyle(.segmented)
|
.pickerStyle(.segmented)
|
||||||
.listRowBackground(Color.clear)
|
.listRowBackground(Color.clear)
|
||||||
.listRowInsets(EdgeInsets(top: 8, leading: 0, bottom: 8, trailing: 0))
|
.listRowInsets(EdgeInsets(top: 8, leading: 0, bottom: 8, trailing: 0))
|
||||||
} header: {
|
|
||||||
Text("mediaBrowser.viewOptions.order")
|
|
||||||
}
|
|
||||||
|
|
||||||
Section {
|
|
||||||
Toggle("mediaBrowser.viewOptions.showOnlyPlayable", isOn: $showOnlyPlayable)
|
|
||||||
} header: {
|
|
||||||
Text("mediaBrowser.viewOptions.filters")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.navigationTitle("mediaBrowser.viewOptions.title")
|
.navigationTitle("mediaBrowser.viewOptions.title")
|
||||||
@@ -70,7 +59,7 @@ struct MediaBrowserViewOptionsSheet: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
.presentationDetents([.medium])
|
.presentationDetents([.height(280)])
|
||||||
.presentationDragIndicator(.visible)
|
.presentationDragIndicator(.visible)
|
||||||
#endif
|
#endif
|
||||||
.onAppear {
|
.onAppear {
|
||||||
|
|||||||
Reference in New Issue
Block a user