From 238ddc7ad9a408fc295348de8e94c4f30dea740c Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Mon, 26 Feb 2024 14:12:11 +0100 Subject: [PATCH] Add help text to all header buttons --- Shared/Settings/HomeSettings.swift | 1 + Shared/Subscriptions/SubscriptionsView.swift | 3 +++ Shared/Views/FavoriteButton.swift | 1 + Shared/Views/HomeSettingsButton.swift | 1 + Shared/Views/ListingStyleButtons.swift | 1 + Shared/Views/ShareButton.swift | 1 + 6 files changed, 8 insertions(+) diff --git a/Shared/Settings/HomeSettings.swift b/Shared/Settings/HomeSettings.swift index 50f98646..1265815e 100644 --- a/Shared/Settings/HomeSettings.swift +++ b/Shared/Settings/HomeSettings.swift @@ -66,6 +66,7 @@ struct HomeSettings: View { .font(.system(size: 30)) #endif } + .help("Add to Favorites") #if !os(tvOS) .buttonStyle(.borderless) #endif diff --git a/Shared/Subscriptions/SubscriptionsView.swift b/Shared/Subscriptions/SubscriptionsView.swift index 1b0a4add..c1d591b6 100644 --- a/Shared/Subscriptions/SubscriptionsView.swift +++ b/Shared/Subscriptions/SubscriptionsView.swift @@ -113,6 +113,7 @@ struct SubscriptionsView: View { } label: { Label("Play all unwatched", systemImage: "play") } + .help("Play all unwatched") .disabled(!feed.canPlayUnwatchedFeed) } @@ -130,6 +131,7 @@ struct SubscriptionsView: View { } label: { Label("Mark all as watched", systemImage: "checkmark.circle.fill") } + .help("Mark all as watched") .disabled(!feed.canMarkAllFeedAsWatched) } @@ -139,6 +141,7 @@ struct SubscriptionsView: View { } label: { Label("Mark all as unwatched", systemImage: "checkmark.circle") } + .help("Mark all as unwatched") } } diff --git a/Shared/Views/FavoriteButton.swift b/Shared/Views/FavoriteButton.swift index 9b98dbd8..7dbdeb86 100644 --- a/Shared/Views/FavoriteButton.swift +++ b/Shared/Views/FavoriteButton.swift @@ -37,6 +37,7 @@ struct FavoriteButton: View { .contentShape(Rectangle()) #endif } + .help(isFavorite ? "Remove from Favorites" : "Add to Favorites") .disabled(item.isNil) .onAppear { isFavorite = item.isNil ? false : favorites.contains(item) diff --git a/Shared/Views/HomeSettingsButton.swift b/Shared/Views/HomeSettingsButton.swift index 4e6e0c8b..04b49247 100644 --- a/Shared/Views/HomeSettingsButton.swift +++ b/Shared/Views/HomeSettingsButton.swift @@ -11,6 +11,7 @@ struct HomeSettingsButton: View { } .font(.caption) .imageScale(.small) + .help("Home Settings") } } diff --git a/Shared/Views/ListingStyleButtons.swift b/Shared/Views/ListingStyleButtons.swift index 187158f7..1992b5de 100644 --- a/Shared/Views/ListingStyleButtons.swift +++ b/Shared/Views/ListingStyleButtons.swift @@ -16,6 +16,7 @@ struct ListingStyleButtons: View { .imageScale(.small) #endif } + .help(listingStyle == .cells ? "List" : "Cells") #endif } diff --git a/Shared/Views/ShareButton.swift b/Shared/Views/ShareButton.swift index 27f47d3c..69451b92 100644 --- a/Shared/Views/ShareButton.swift +++ b/Shared/Views/ShareButton.swift @@ -38,6 +38,7 @@ struct ShareButton: View { label } .menuStyle(.borderlessButton) + .help("Share") #if os(macOS) .frame(maxWidth: 60) #endif