나머지 .font를 .appFont로 변경하여 한국어 텍스트와 다른 언어 텍스트에 다른 폰트 적용
This commit is contained in:
@@ -102,7 +102,7 @@ struct LiveRoomChatItemView: View {
|
||||
HStack(spacing: 5) {
|
||||
if chatMessage.rank == -3 {
|
||||
Text("스탭")
|
||||
.font(.system(size: 10))
|
||||
.appFont(size: 10)
|
||||
.foregroundColor(.white)
|
||||
.padding(2)
|
||||
.background(Color(hex: "4999e3"))
|
||||
@@ -110,12 +110,12 @@ struct LiveRoomChatItemView: View {
|
||||
}
|
||||
|
||||
Text(chatMessage.nickname)
|
||||
.font(.system(size: 12, weight: .light))
|
||||
.appFont(size: 12, weight: .light)
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
|
||||
Text(chatMessage.chat)
|
||||
.font(.system(size: 15))
|
||||
.appFont(size: 15)
|
||||
.foregroundColor(.white)
|
||||
.multilineTextAlignment(.leading)
|
||||
.lineLimit(nil)
|
||||
|
||||
@@ -37,27 +37,27 @@ struct LiveRoomDonationChatItemView: View {
|
||||
VStack(alignment: .leading, spacing: 6.7) {
|
||||
HStack(spacing: 0) {
|
||||
Text(chatMessage.nickname)
|
||||
.font(.system(size: 12))
|
||||
.appFont(size: 12)
|
||||
.foregroundColor(.white)
|
||||
|
||||
Text("님이")
|
||||
.font(.system(size: 12, weight: .light))
|
||||
.appFont(size: 12, weight: .light)
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
|
||||
HStack(spacing: 0) {
|
||||
Text("\(chatMessage.can)캔")
|
||||
.font(.system(size: 15))
|
||||
.appFont(size: 15)
|
||||
.foregroundColor(Color(hex: "fdca2f"))
|
||||
|
||||
Text(chatMessage.chat.contains("비밀") ? "으로 비밀미션을 보냈습니다.🤫" : "을 후원하셨습니다.💰🪙")
|
||||
.font(.system(size: 15))
|
||||
.appFont(size: 15)
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
|
||||
if !chatMessage.donationMessage.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
|
||||
Text("\"\(chatMessage.donationMessage)\"")
|
||||
.font(.system(size: 15))
|
||||
.appFont(size: 15)
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,15 +14,15 @@ struct LiveRoomHeartDonationChatItemView: View {
|
||||
var body: some View {
|
||||
HStack(spacing: 0) {
|
||||
Text("'")
|
||||
.font(.system(size: 12))
|
||||
.appFont(size: 12)
|
||||
.foregroundColor(Color.white)
|
||||
|
||||
Text(nickname)
|
||||
.font(.system(size: 12, weight: .bold))
|
||||
.appFont(size: 12, weight: .bold)
|
||||
.foregroundColor(Color(hex: "ec3aa6"))
|
||||
|
||||
Text("'님이 마음을 전했습니다 : 💕")
|
||||
.font(.system(size: 12))
|
||||
.appFont(size: 12)
|
||||
.foregroundColor(Color.gray11)
|
||||
}
|
||||
.padding(.vertical, 6.7)
|
||||
|
||||
@@ -14,15 +14,15 @@ struct LiveRoomJoinChatItemView: View {
|
||||
var body: some View {
|
||||
HStack(spacing: 0) {
|
||||
Text("'")
|
||||
.font(.system(size: 12))
|
||||
.appFont(size: 12)
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
Text(chatMessage.nickname)
|
||||
.font(.system(size: 12, weight: .bold))
|
||||
.appFont(size: 12, weight: .bold)
|
||||
.foregroundColor(Color.mainYellow)
|
||||
|
||||
Text("'님이 입장하셨습니다.")
|
||||
.font(.system(size: 12))
|
||||
.appFont(size: 12)
|
||||
.foregroundColor(Color.grayee)
|
||||
}
|
||||
.padding(.vertical, 6.7)
|
||||
|
||||
@@ -37,22 +37,22 @@ struct LiveRoomRouletteDonationChatItemView: View {
|
||||
VStack(alignment: .leading, spacing: 6.7) {
|
||||
HStack(spacing: 0) {
|
||||
Text(chatMessage.nickname)
|
||||
.font(.system(size: 12))
|
||||
.appFont(size: 12)
|
||||
.foregroundColor(.white)
|
||||
|
||||
Text("님의 룰렛 결과?")
|
||||
.font(.system(size: 12, weight: .light))
|
||||
.appFont(size: 12, weight: .light)
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
|
||||
Text("[\(chatMessage.rouletteResult)]")
|
||||
.font(.system(size: 15))
|
||||
.appFont(size: 15)
|
||||
.foregroundColor(Color(hex: "ffe500"))
|
||||
|
||||
+
|
||||
|
||||
Text(" 당첨!")
|
||||
.font(.system(size: 15))
|
||||
.appFont(size: 15)
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -533,7 +533,7 @@ struct LiveRoomCreateView: View {
|
||||
|
||||
Button(action: { self.isShowSelectDateView = false }) {
|
||||
Text("확인")
|
||||
.font(.system(size: 16))
|
||||
.appFont(size: 16)
|
||||
.foregroundColor(Color.grayee)
|
||||
.padding(.vertical, 10)
|
||||
.frame(width: proxy.size.width - 53.4)
|
||||
@@ -564,7 +564,7 @@ struct LiveRoomCreateView: View {
|
||||
|
||||
Button(action: { self.isShowSelectTimeView = false }) {
|
||||
Text("확인")
|
||||
.font(.system(size: 16))
|
||||
.appFont(size: 16)
|
||||
.foregroundColor(Color.grayee)
|
||||
.padding(.vertical, 10)
|
||||
.frame(width: proxy.size.width)
|
||||
@@ -753,12 +753,7 @@ struct LiveRoomCreateView: View {
|
||||
func PriceButtonView(price: Int, buttonWidth: CGFloat) -> some View {
|
||||
HStack(spacing: 6.7) {
|
||||
Text(price == 0 ? "무료" : "\(price) 캔")
|
||||
.font(.custom(
|
||||
viewModel.price == price ?
|
||||
Font.bold.rawValue :
|
||||
Font.medium.rawValue,
|
||||
size: 14.7
|
||||
))
|
||||
.appFont(size: 14.7, weight: viewModel.price == price ? .bold : .medium)
|
||||
.foregroundColor(viewModel.price == price ? Color.button : Color.gray77)
|
||||
}
|
||||
.frame(width: buttonWidth, height: 48.7)
|
||||
|
||||
@@ -246,7 +246,7 @@ struct LiveRoomEditView: View {
|
||||
|
||||
Button(action: { self.isShowSelectDateView = false }) {
|
||||
Text("확인")
|
||||
.font(.system(size: 16))
|
||||
.appFont(size: 16)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
.padding(.vertical, 10)
|
||||
.frame(width: proxy.size.width - 53.4)
|
||||
@@ -277,7 +277,7 @@ struct LiveRoomEditView: View {
|
||||
|
||||
Button(action: { self.isShowSelectTimeView = false }) {
|
||||
Text("확인")
|
||||
.font(.system(size: 16))
|
||||
.appFont(size: 16)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
.padding(.vertical, 10)
|
||||
.frame(width: proxy.size.width)
|
||||
|
||||
Reference in New Issue
Block a user