mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Add help text to all header buttons
This commit is contained in:

committed by
Ricky Kresslein

parent
7b34c7e72b
commit
238ddc7ad9
@@ -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)
|
||||
|
@@ -11,6 +11,7 @@ struct HomeSettingsButton: View {
|
||||
}
|
||||
.font(.caption)
|
||||
.imageScale(.small)
|
||||
.help("Home Settings")
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -16,6 +16,7 @@ struct ListingStyleButtons: View {
|
||||
.imageScale(.small)
|
||||
#endif
|
||||
}
|
||||
.help(listingStyle == .cells ? "List" : "Cells")
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@@ -38,6 +38,7 @@ struct ShareButton<LabelView: View>: View {
|
||||
label
|
||||
}
|
||||
.menuStyle(.borderlessButton)
|
||||
.help("Share")
|
||||
#if os(macOS)
|
||||
.frame(maxWidth: 60)
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user