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" : {
|
||||
"extractionState" : "stale",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"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" : {
|
||||
"comment" : "Toggle to enable background notifications",
|
||||
"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" : {
|
||||
"comment" : "Description for notifications toggle",
|
||||
"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" : {
|
||||
"comment" : "Description when no subscriptions exist",
|
||||
"localizations" : {
|
||||
@@ -17268,4 +17269,4 @@
|
||||
}
|
||||
},
|
||||
"version" : "1.0"
|
||||
}
|
||||
}
|
||||
@@ -24,17 +24,14 @@ struct MediaBrowserViewOptionsSheet: View {
|
||||
NavigationStack {
|
||||
Form {
|
||||
Section {
|
||||
Toggle("mediaBrowser.viewOptions.showOnlyPlayable", isOn: $showOnlyPlayable)
|
||||
Picker("mediaBrowser.viewOptions.sortBy", selection: $sortOrder) {
|
||||
ForEach(availableSortOptions) { order in
|
||||
Label(order.displayName, systemImage: order.systemImage)
|
||||
.tag(order)
|
||||
}
|
||||
}
|
||||
} header: {
|
||||
Text("mediaBrowser.viewOptions.sortBy")
|
||||
}
|
||||
|
||||
Section {
|
||||
Picker("mediaBrowser.viewOptions.order", selection: $sortAscending) {
|
||||
Label(String(localized: "mediaBrowser.viewOptions.ascending"), systemImage: "arrow.up")
|
||||
.tag(true)
|
||||
@@ -44,14 +41,6 @@ struct MediaBrowserViewOptionsSheet: View {
|
||||
.pickerStyle(.segmented)
|
||||
.listRowBackground(Color.clear)
|
||||
.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")
|
||||
@@ -70,7 +59,7 @@ struct MediaBrowserViewOptionsSheet: View {
|
||||
}
|
||||
}
|
||||
#if os(iOS)
|
||||
.presentationDetents([.medium])
|
||||
.presentationDetents([.height(280)])
|
||||
.presentationDragIndicator(.visible)
|
||||
#endif
|
||||
.onAppear {
|
||||
|
||||
Reference in New Issue
Block a user