fix(creator): 고액 후원 글자색을 조정한다
This commit is contained in:
@@ -33,13 +33,13 @@ struct CreatorChannelDonationCard: View {
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
Text(donation.nickname)
|
||||
.appFont(size: 14, weight: .medium)
|
||||
.foregroundColor(.black)
|
||||
.foregroundColor(donation.nicknameColor)
|
||||
.lineLimit(1)
|
||||
.truncationMode(.tail)
|
||||
|
||||
Text(donation.relativeTimeText())
|
||||
.appFont(size: 14, weight: .regular)
|
||||
.foregroundColor(Color.gray700)
|
||||
.foregroundColor(donation.relativeTimeColor)
|
||||
.lineLimit(1)
|
||||
}
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
@@ -91,6 +91,14 @@ extension CreatorChannelDonationResponse {
|
||||
return Color(hex: "FF4C3C")
|
||||
}
|
||||
}
|
||||
|
||||
var nicknameColor: Color {
|
||||
can >= 501 ? .white : .black
|
||||
}
|
||||
|
||||
var relativeTimeColor: Color {
|
||||
can >= 501 ? Color.gray100 : Color.gray700
|
||||
}
|
||||
}
|
||||
|
||||
struct CreatorChannelDonationCard_Previews: PreviewProvider {
|
||||
|
||||
Reference in New Issue
Block a user