mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Move "Show toggle watch status button" to History settings
This commit is contained in:
parent
ac7dad2ab8
commit
1e2d6cf72f
@ -16,7 +16,6 @@ struct BrowsingSettings: View {
|
||||
@Default(.thumbnailsQuality) private var thumbnailsQuality
|
||||
@Default(.channelOnThumbnail) private var channelOnThumbnail
|
||||
@Default(.timeOnThumbnail) private var timeOnThumbnail
|
||||
@Default(.showToggleWatchedStatusButton) private var showToggleWatchedStatusButton
|
||||
@Default(.showHome) private var showHome
|
||||
@Default(.showFavoritesInHome) private var showFavoritesInHome
|
||||
@Default(.showQueueInHome) private var showQueueInHome
|
||||
@ -245,9 +244,6 @@ struct BrowsingSettings: View {
|
||||
#endif
|
||||
Toggle("Show channel name", isOn: $channelOnThumbnail)
|
||||
Toggle("Show video length", isOn: $timeOnThumbnail)
|
||||
#if !os(tvOS)
|
||||
Toggle("Show toggle watch status button", isOn: $showToggleWatchedStatusButton)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -16,6 +16,7 @@ struct HistorySettings: View {
|
||||
@Default(.watchedVideoBadgeColor) private var watchedVideoBadgeColor
|
||||
@Default(.watchedVideoPlayNowBehavior) private var watchedVideoPlayNowBehavior
|
||||
@Default(.resetWatchedStatusOnPlaying) private var resetWatchedStatusOnPlaying
|
||||
@Default(.showToggleWatchedStatusButton) private var showToggleWatchedStatusButton
|
||||
|
||||
var body: some View {
|
||||
Group {
|
||||
@ -75,6 +76,8 @@ struct HistorySettings: View {
|
||||
.padding(.top, 1)
|
||||
#endif
|
||||
watchedVideoBadgeColorPicker
|
||||
showToggleWatchedStatusButtonToggle
|
||||
.disabled(watchedVideoStyle != .badge)
|
||||
}
|
||||
|
||||
#if os(macOS)
|
||||
@ -111,6 +114,12 @@ struct HistorySettings: View {
|
||||
}
|
||||
}
|
||||
|
||||
@ViewBuilder private var showToggleWatchedStatusButtonToggle: some View {
|
||||
#if !os(tvOS)
|
||||
Toggle("Show toggle watch status button", isOn: $showToggleWatchedStatusButton)
|
||||
#endif
|
||||
}
|
||||
|
||||
private var watchedVideoBadgeColorPicker: some View {
|
||||
Section(header: SettingsHeader(text: "Badge color".localized(), secondary: true)) {
|
||||
Picker("Badge color", selection: $watchedVideoBadgeColor) {
|
||||
|
Loading…
Reference in New Issue
Block a user