likes: make the default like emoji more muted
This commit is contained in:
@@ -151,13 +151,15 @@ struct LikeButton: View {
|
|||||||
|
|
||||||
@Environment(\.colorScheme) var colorScheme
|
@Environment(\.colorScheme) var colorScheme
|
||||||
|
|
||||||
var default_emoji: String {
|
|
||||||
return colorScheme == .dark ? "🤙🏿" : "🤙🏻"
|
|
||||||
}
|
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Button(action: action) {
|
Button(action: action) {
|
||||||
Text(liked ? "🤙" : default_emoji)
|
if liked {
|
||||||
|
Text("🤙")
|
||||||
|
} else {
|
||||||
|
Label(" ", systemImage: "hand.thumbsup")
|
||||||
|
.font(.footnote.weight(.medium))
|
||||||
|
.foregroundColor(Color.gray)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user