#14 Change thumbsup icon into star

This commit is contained in:
Marcin Czachursk 2023-04-06 13:28:34 +02:00
parent 705d2ddd56
commit 3c26c479b8
5 changed files with 8 additions and 8 deletions

View File

@ -45,7 +45,7 @@ private struct ImageContextMenu: ViewModifier {
await self.favourite()
}
} label: {
Label("status.title.favourite", systemImage: "hand.thumbsup")
Label("status.title.favourite", systemImage: "star")
}
Button {
@ -83,7 +83,7 @@ private struct ImageContextMenu: ViewModifier {
private func favourite() async {
do {
_ = try await self.client.statuses?.favourite(statusId: self.id)
ToastrService.shared.showSuccess(NSLocalizedString("status.title.favourited", comment: "Favourited"), imageSystemName: "hand.thumbsup.fill")
ToastrService.shared.showSuccess(NSLocalizedString("status.title.favourited", comment: "Favourited"), imageSystemName: "star.fill")
} catch {
ErrorService.shared.handle(error, message: "status.error.favouriteFailed", showToastr: true)
}

View File

@ -192,7 +192,7 @@ struct NotificationRowView: View {
case .reblog:
return Image("custom.rocket")
case .favourite:
return Image(systemName: "hand.thumbsup")
return Image(systemName: "star")
case .status:
return Image(systemName: "photo.on.rectangle.angled")
case .followRequest:

View File

@ -196,7 +196,7 @@ struct UserProfileView: View {
Divider()
NavigationLink(value: RouteurDestinations.favourites) {
Label(NSLocalizedString("userProfile.title.favourites", comment: "Favourites"), systemImage: "hand.thumbsup")
Label(NSLocalizedString("userProfile.title.favourites", comment: "Favourites"), systemImage: "star")
}
NavigationLink(value: RouteurDestinations.bookmarks) {

View File

@ -24,7 +24,7 @@ struct FavouriteTouch: View {
.foregroundColor(.white.opacity(0.75))
.scaleEffect(CGFloat(showCircle))
Image(systemName: "hand.thumbsup.fill")
Image(systemName: "star.fill")
.font(.system(size: 26))
.foregroundColor(.black.opacity(0.4))
.clipShape(Rectangle().offset(y: CGFloat(showThumb)))

View File

@ -63,7 +63,7 @@ struct InteractionRow: View {
await self.favourite()
} label: {
HStack(alignment: .center) {
Image(systemName: self.favourited ? "hand.thumbsup.fill" : "hand.thumbsup")
Image(systemName: self.favourited ? "star.fill" : "star")
Text("\(self.favouritesCount)")
.font(.caption)
}
@ -85,7 +85,7 @@ struct InteractionRow: View {
}
NavigationLink(value: RouteurDestinations.accounts(listType: .favourited(entityId: statusModel.id))) {
Label("status.title.favouritedBy", systemImage: "hand.thumbsup")
Label("status.title.favouritedBy", systemImage: "star")
}
if let url = statusModel.url {
@ -175,7 +175,7 @@ struct InteractionRow: View {
ToastrService.shared.showSuccess(self.favourited
? NSLocalizedString("status.title.favourited", comment: "Favourited")
: NSLocalizedString("status.title.unfavourited", comment: "Unfavourited"), imageSystemName: "hand.thumbsup.fill")
: NSLocalizedString("status.title.unfavourited", comment: "Unfavourited"), imageSystemName: "star.fill")
} catch {
ErrorService.shared.handle(error, message: "status.error.favouriteFailed", showToastr: true)
}