mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Listing styles
This commit is contained in:
@@ -29,6 +29,7 @@ struct SearchView: View {
|
||||
@Default(.recentlyOpened) private var recentlyOpened
|
||||
@Default(.saveRecents) private var saveRecents
|
||||
@Default(.showHome) private var showHome
|
||||
@Default(.searchListingStyle) private var searchListingStyle
|
||||
|
||||
private var videos = [Video]()
|
||||
|
||||
@@ -68,9 +69,11 @@ struct SearchView: View {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
.environment(\.listingStyle, searchListingStyle)
|
||||
.toolbar {
|
||||
#if os(macOS)
|
||||
ToolbarItemGroup(placement: toolbarPlacement) {
|
||||
ListingStyleButtons(listingStyle: $searchListingStyle)
|
||||
FavoriteButton(item: favoriteItem)
|
||||
.id(favoriteItem?.id)
|
||||
|
||||
@@ -212,6 +215,8 @@ struct SearchView: View {
|
||||
}
|
||||
}
|
||||
|
||||
ListingStyleButtons(listingStyle: $searchListingStyle)
|
||||
|
||||
Section {
|
||||
SettingsButtons()
|
||||
}
|
||||
|
Reference in New Issue
Block a user