라이브 방
- 비밀 미션 채팅 배경색 변경
This commit is contained in:
@@ -26,6 +26,7 @@ struct LiveRoomNormalChat: LiveRoomChat {
|
||||
}
|
||||
|
||||
struct LiveRoomDonationChat: LiveRoomChat {
|
||||
let memberId: Int
|
||||
let profileUrl: String
|
||||
let nickname: String
|
||||
let chat: String
|
||||
|
@@ -50,7 +50,7 @@ struct LiveRoomDonationChatItemView: View {
|
||||
.font(.system(size: 15))
|
||||
.foregroundColor(Color(hex: "fdca2f"))
|
||||
|
||||
Text(chatMessage.chat.contains("비밀") ? "으로 비밀미션을 보냈습니다.💰🪙" : "을 후원하셨습니다.💰🪙")
|
||||
Text(chatMessage.chat.contains("비밀") ? "으로 비밀미션을 보냈습니다." : "을 후원하셨습니다.💰🪙")
|
||||
.font(.system(size: 15))
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
@@ -65,7 +65,8 @@ struct LiveRoomDonationChatItemView: View {
|
||||
.padding(13)
|
||||
.frame(width: screenSize().width - 86, alignment: .leading)
|
||||
.background(
|
||||
chatMessage.chat.contains("비밀") ? Color(hex: "333333").opacity(0.8) :
|
||||
chatMessage.chat.contains("비밀") ? chatMessage.memberId == UserDefaults.int(forKey: .userId) ? Color(hex: "59548f").opacity(0.8) :
|
||||
Color(hex: "333333").opacity(0.8) :
|
||||
chatMessage.can >= 10000 ? Color(hex: "c25264").opacity(0.8) :
|
||||
chatMessage.can >= 5000 ? Color(hex: "d85e37").opacity(0.8) :
|
||||
chatMessage.can >= 1000 ? Color(hex: "d38c38").opacity(0.8) :
|
||||
|
Reference in New Issue
Block a user