나머지 .font를 .appFont로 변경하여 한국어 텍스트와 다른 언어 텍스트에 다른 폰트 적용

This commit is contained in:
Yu Sung
2026-01-23 03:46:11 +09:00
parent b3331d5512
commit 9533b06d1e
21 changed files with 48 additions and 87 deletions

View File

@@ -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)

View File

@@ -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)
}
}

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)
}
}