mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Update settings menu order
This commit is contained in:
parent
8d9c01677a
commit
1bc2196264
@ -18,6 +18,7 @@ struct FixtureEnvironmentObjectsModifier: ViewModifier {
|
|||||||
.environmentObject(PlaylistsModel())
|
.environmentObject(PlaylistsModel())
|
||||||
.environmentObject(RecentsModel())
|
.environmentObject(RecentsModel())
|
||||||
.environmentObject(SearchModel())
|
.environmentObject(SearchModel())
|
||||||
|
.environmentObject(SettingsModel())
|
||||||
.environmentObject(subscriptions)
|
.environmentObject(subscriptions)
|
||||||
.environmentObject(ThumbnailsModel())
|
.environmentObject(ThumbnailsModel())
|
||||||
}
|
}
|
||||||
|
@ -5,10 +5,10 @@ import SwiftUI
|
|||||||
struct SettingsView: View {
|
struct SettingsView: View {
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
private enum Tabs: Hashable {
|
private enum Tabs: Hashable {
|
||||||
case browsing, player, history, sponsorBlock, locations, advanced, help
|
case locations, browsing, player, history, sponsorBlock, advanced, help
|
||||||
}
|
}
|
||||||
|
|
||||||
@State private var selection = Tabs.browsing
|
@State private var selection = Tabs.locations
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@Environment(\.colorScheme) private var colorScheme
|
@Environment(\.colorScheme) private var colorScheme
|
||||||
@ -32,6 +32,14 @@ struct SettingsView: View {
|
|||||||
var settings: some View {
|
var settings: some View {
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
TabView(selection: $selection) {
|
TabView(selection: $selection) {
|
||||||
|
Form {
|
||||||
|
LocationsSettings()
|
||||||
|
}
|
||||||
|
.tabItem {
|
||||||
|
Label("Locations", systemImage: "globe")
|
||||||
|
}
|
||||||
|
.tag(Tabs.locations)
|
||||||
|
|
||||||
Form {
|
Form {
|
||||||
BrowsingSettings()
|
BrowsingSettings()
|
||||||
}
|
}
|
||||||
@ -64,14 +72,6 @@ struct SettingsView: View {
|
|||||||
}
|
}
|
||||||
.tag(Tabs.sponsorBlock)
|
.tag(Tabs.sponsorBlock)
|
||||||
|
|
||||||
Form {
|
|
||||||
LocationsSettings()
|
|
||||||
}
|
|
||||||
.tabItem {
|
|
||||||
Label("Locations", systemImage: "globe")
|
|
||||||
}
|
|
||||||
.tag(Tabs.locations)
|
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
AdvancedSettings()
|
AdvancedSettings()
|
||||||
}
|
}
|
||||||
@ -121,6 +121,12 @@ struct SettingsView: View {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
NavigationLink {
|
||||||
|
LocationsSettings()
|
||||||
|
} label: {
|
||||||
|
Label("Locations", systemImage: "globe")
|
||||||
|
}
|
||||||
|
|
||||||
NavigationLink {
|
NavigationLink {
|
||||||
BrowsingSettings()
|
BrowsingSettings()
|
||||||
} label: {
|
} label: {
|
||||||
@ -145,12 +151,6 @@ struct SettingsView: View {
|
|||||||
Label("SponsorBlock", systemImage: "dollarsign.circle")
|
Label("SponsorBlock", systemImage: "dollarsign.circle")
|
||||||
}
|
}
|
||||||
|
|
||||||
NavigationLink {
|
|
||||||
LocationsSettings()
|
|
||||||
} label: {
|
|
||||||
Label("Locations", systemImage: "globe")
|
|
||||||
}
|
|
||||||
|
|
||||||
NavigationLink {
|
NavigationLink {
|
||||||
AdvancedSettings()
|
AdvancedSettings()
|
||||||
} label: {
|
} label: {
|
||||||
|
Loading…
Reference in New Issue
Block a user