mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Add help text to all header buttons
This commit is contained in:
parent
7b34c7e72b
commit
238ddc7ad9
@ -66,6 +66,7 @@ struct HomeSettings: View {
|
|||||||
.font(.system(size: 30))
|
.font(.system(size: 30))
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
.help("Add to Favorites")
|
||||||
#if !os(tvOS)
|
#if !os(tvOS)
|
||||||
.buttonStyle(.borderless)
|
.buttonStyle(.borderless)
|
||||||
#endif
|
#endif
|
||||||
|
@ -113,6 +113,7 @@ struct SubscriptionsView: View {
|
|||||||
} label: {
|
} label: {
|
||||||
Label("Play all unwatched", systemImage: "play")
|
Label("Play all unwatched", systemImage: "play")
|
||||||
}
|
}
|
||||||
|
.help("Play all unwatched")
|
||||||
.disabled(!feed.canPlayUnwatchedFeed)
|
.disabled(!feed.canPlayUnwatchedFeed)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,6 +131,7 @@ struct SubscriptionsView: View {
|
|||||||
} label: {
|
} label: {
|
||||||
Label("Mark all as watched", systemImage: "checkmark.circle.fill")
|
Label("Mark all as watched", systemImage: "checkmark.circle.fill")
|
||||||
}
|
}
|
||||||
|
.help("Mark all as watched")
|
||||||
.disabled(!feed.canMarkAllFeedAsWatched)
|
.disabled(!feed.canMarkAllFeedAsWatched)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,6 +141,7 @@ struct SubscriptionsView: View {
|
|||||||
} label: {
|
} label: {
|
||||||
Label("Mark all as unwatched", systemImage: "checkmark.circle")
|
Label("Mark all as unwatched", systemImage: "checkmark.circle")
|
||||||
}
|
}
|
||||||
|
.help("Mark all as unwatched")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@ struct FavoriteButton: View {
|
|||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
.help(isFavorite ? "Remove from Favorites" : "Add to Favorites")
|
||||||
.disabled(item.isNil)
|
.disabled(item.isNil)
|
||||||
.onAppear {
|
.onAppear {
|
||||||
isFavorite = item.isNil ? false : favorites.contains(item)
|
isFavorite = item.isNil ? false : favorites.contains(item)
|
||||||
|
@ -11,6 +11,7 @@ struct HomeSettingsButton: View {
|
|||||||
}
|
}
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
.imageScale(.small)
|
.imageScale(.small)
|
||||||
|
.help("Home Settings")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ struct ListingStyleButtons: View {
|
|||||||
.imageScale(.small)
|
.imageScale(.small)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
.help(listingStyle == .cells ? "List" : "Cells")
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ struct ShareButton<LabelView: View>: View {
|
|||||||
label
|
label
|
||||||
}
|
}
|
||||||
.menuStyle(.borderlessButton)
|
.menuStyle(.borderlessButton)
|
||||||
|
.help("Share")
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
.frame(maxWidth: 60)
|
.frame(maxWidth: 60)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user