커스텀 폰트 pretendard-medium, gmarket-medium를 사용하고 있던 것을 appFont 모디
파이어를 사용하여 한국어는 pretendard, 그 외에는 시스템 폰트를 사용하도록 수정
This commit is contained in:
@@ -25,7 +25,7 @@ struct LiveRoomDialogView: View {
|
||||
.frame(width: 36, height: 36)
|
||||
|
||||
Text(content)
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
}
|
||||
.padding(.horizontal, 26.7)
|
||||
@@ -35,7 +35,7 @@ struct LiveRoomDialogView: View {
|
||||
|
||||
if let cancelTitle = cancelTitle, let cancelAction = cancelAction {
|
||||
Text(cancelTitle)
|
||||
.font(.custom(Font.medium.rawValue, size: 10))
|
||||
.appFont(size: 10, weight: .medium)
|
||||
.foregroundColor(.white)
|
||||
.padding(.horizontal, 8)
|
||||
.padding(.vertical, 8.3)
|
||||
@@ -51,7 +51,7 @@ struct LiveRoomDialogView: View {
|
||||
|
||||
if let confirmTitle = confirmTitle, let confirmAction = confirmAction {
|
||||
Text(confirmTitle)
|
||||
.font(.custom(Font.medium.rawValue, size: 10))
|
||||
.appFont(size: 10, weight: .medium)
|
||||
.foregroundColor(Color(hex: "3bb9f1"))
|
||||
.padding(.horizontal, 8)
|
||||
.padding(.vertical, 8.3)
|
||||
|
||||
@@ -30,7 +30,7 @@ struct LiveRoomDonationMessageDialog: View {
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
|
||||
Text("(\(viewModel.donationMessageCount))")
|
||||
.font(.custom(Font.medium.rawValue, size: 14.7))
|
||||
.appFont(size: 14.7, weight: .medium)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
|
||||
Spacer()
|
||||
@@ -60,7 +60,7 @@ struct LiveRoomDonationMessageDialog: View {
|
||||
.padding(.top, 18.7)
|
||||
} else {
|
||||
Text("후원 히스토리가 없습니다.")
|
||||
.font(.custom(Font.medium.rawValue, size: 14.7))
|
||||
.appFont(size: 14.7, weight: .medium)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
.padding(.top, 30)
|
||||
}
|
||||
@@ -80,7 +80,7 @@ struct LiveRoomDonationMessageDialog: View {
|
||||
Text(viewModel.errorMessage)
|
||||
.padding(.vertical, 13.3)
|
||||
.frame(width: screenSize().width - 66.7, alignment: .center)
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.background(Color.button)
|
||||
.foregroundColor(Color.white)
|
||||
.multilineTextAlignment(.leading)
|
||||
|
||||
@@ -17,17 +17,17 @@ struct LiveRoomDonationMessageItemView: View {
|
||||
HStack(alignment: .top, spacing: 0) {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
Text("\(message.nickname)님이")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(.white)
|
||||
|
||||
if !message.canMessage.trimmingCharacters(in: .whitespaces).isEmpty {
|
||||
Text("\(message.canMessage)")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
|
||||
Text("'\(message.donationMessage)'")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
|
||||
|
||||
@@ -34,16 +34,16 @@ struct LiveRoomDonationRankingDialog: View {
|
||||
|
||||
HStack(spacing: 0) {
|
||||
Text("전체")
|
||||
.font(.custom(Font.medium.rawValue, size: 14.7))
|
||||
.appFont(size: 14.7, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
Text(" \(donationStatus.totalCount)")
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.button)
|
||||
.padding(.leading, 6.7)
|
||||
|
||||
Text("명")
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.gray77)
|
||||
|
||||
Spacer()
|
||||
@@ -79,7 +79,7 @@ struct LiveRoomDonationRankingDialog: View {
|
||||
Text(viewModel.errorMessage)
|
||||
.padding(.vertical, 13.3)
|
||||
.frame(width: screenSize().width - 66.7, alignment: .center)
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.background(Color.button)
|
||||
.foregroundColor(Color.white)
|
||||
.multilineTextAlignment(.leading)
|
||||
|
||||
@@ -61,7 +61,7 @@ struct LiveRoomDonationRankingItemView: View {
|
||||
|
||||
let nickname = item.nickname.count > 10 ? "\(String(item.nickname.prefix(10)))..." : item.nickname
|
||||
Text(nickname)
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
|
||||
Spacer()
|
||||
@@ -70,11 +70,11 @@ struct LiveRoomDonationRankingItemView: View {
|
||||
if item.can > 0 {
|
||||
HStack(spacing: 4) {
|
||||
Text("\(item.can)")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.button)
|
||||
|
||||
Text("캔")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
}
|
||||
}
|
||||
@@ -82,7 +82,7 @@ struct LiveRoomDonationRankingItemView: View {
|
||||
if item.secretCan > 0 {
|
||||
HStack(spacing: 4) {
|
||||
Text("비밀")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.gray11)
|
||||
.padding(.horizontal, 3.3)
|
||||
.padding(.vertical, 2.7)
|
||||
@@ -90,11 +90,11 @@ struct LiveRoomDonationRankingItemView: View {
|
||||
.cornerRadius(2.7)
|
||||
|
||||
Text("\(item.secretCan)")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color(hex: "fedc00"))
|
||||
|
||||
Text("캔")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,43 +20,43 @@ struct LiveRoomDonationRankingTotalCanView: View {
|
||||
|
||||
if totalSecretCan > 0 {
|
||||
Text(" (")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayd2)
|
||||
|
||||
Text("일반")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.button)
|
||||
|
||||
Text("/")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayd2)
|
||||
|
||||
Text("비밀")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color(hex: "fedc00"))
|
||||
|
||||
Text(")")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayd2)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
|
||||
Text("\(totalCan)")
|
||||
.font(.custom(Font.medium.rawValue, size: 14))
|
||||
.appFont(size: 14, weight: .medium)
|
||||
.foregroundColor(Color.button)
|
||||
|
||||
if totalSecretCan > 0 {
|
||||
Text("/")
|
||||
.font(.custom(Font.medium.rawValue, size: 14))
|
||||
.appFont(size: 14, weight: .medium)
|
||||
.foregroundColor(Color.white)
|
||||
Text("\(totalSecretCan)")
|
||||
.font(.custom(Font.medium.rawValue, size: 14))
|
||||
.appFont(size: 14, weight: .medium)
|
||||
.foregroundColor(Color(hex: "fedc00"))
|
||||
}
|
||||
|
||||
Text("캔")
|
||||
.font(.custom(Font.medium.rawValue, size: 10.7))
|
||||
.appFont(size: 10.7, weight: .medium)
|
||||
.foregroundColor(Color.graybb)
|
||||
.padding(.leading, 4)
|
||||
}
|
||||
|
||||
@@ -41,11 +41,11 @@ struct LiveRoomHeartRankingDialog: View {
|
||||
Spacer()
|
||||
|
||||
Text("\(heartStatus.totalHeart)")
|
||||
.font(.custom(Font.medium.rawValue, size: 14))
|
||||
.appFont(size: 14, weight: .medium)
|
||||
.foregroundColor(Color.button)
|
||||
|
||||
Text("하트")
|
||||
.font(.custom(Font.medium.rawValue, size: 10.7))
|
||||
.appFont(size: 10.7, weight: .medium)
|
||||
.foregroundColor(Color.graybb)
|
||||
.padding(.leading, 4)
|
||||
}
|
||||
@@ -57,16 +57,16 @@ struct LiveRoomHeartRankingDialog: View {
|
||||
|
||||
HStack(spacing: 0) {
|
||||
Text("전체")
|
||||
.font(.custom(Font.medium.rawValue, size: 14.7))
|
||||
.appFont(size: 14.7, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
Text(" \(heartStatus.totalCount)")
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.button)
|
||||
.padding(.leading, 6.7)
|
||||
|
||||
Text("명")
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.gray77)
|
||||
|
||||
Spacer()
|
||||
@@ -102,7 +102,7 @@ struct LiveRoomHeartRankingDialog: View {
|
||||
Text(errorMessage)
|
||||
.padding(.vertical, 13.3)
|
||||
.frame(width: screenSize().width - 66.7, alignment: .center)
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.background(Color.button)
|
||||
.foregroundColor(Color.white)
|
||||
.multilineTextAlignment(.leading)
|
||||
|
||||
@@ -61,7 +61,7 @@ struct LiveRoomHeartRankingItemView: View {
|
||||
|
||||
let nickname = item.nickname.count > 10 ? "\(String(item.nickname.prefix(10)))..." : item.nickname
|
||||
Text(nickname)
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
Spacer()
|
||||
@@ -70,11 +70,11 @@ struct LiveRoomHeartRankingItemView: View {
|
||||
if item.heart > 0 {
|
||||
HStack(spacing: 4) {
|
||||
Text("\(item.heart)")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.button)
|
||||
|
||||
Text("하트")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ struct LiveRoomInfoEditDialog: View {
|
||||
|
||||
HStack(spacing: 0) {
|
||||
Text("19세 이상")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
Spacer()
|
||||
@@ -258,7 +258,7 @@ struct LiveRoomInfoEditDialog: View {
|
||||
TextField("라이브 제목을 입력하세요", text: $title)
|
||||
.autocapitalization(.none)
|
||||
.disableAutocorrection(true)
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
.accentColor(Color.button)
|
||||
.keyboardType(.default)
|
||||
@@ -283,10 +283,10 @@ struct LiveRoomInfoEditDialog: View {
|
||||
Spacer()
|
||||
|
||||
Text("\(notice.count)자")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.foregroundColor(Color.mainRed) +
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.mainRed)
|
||||
Text(" / 1000자")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.gray77)
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ struct LiveRoomNoChattingDialogView: View {
|
||||
.frame(width: 26.7, height: 26.7)
|
||||
|
||||
Text(nickname)
|
||||
.font(.custom(Font.medium.rawValue, size: 16.7))
|
||||
.appFont(size: 16.7, weight: .medium)
|
||||
.foregroundColor(Color(hex: "bbbbbb"))
|
||||
}
|
||||
|
||||
Text("3분간 채팅금지를 하겠습니까?")
|
||||
.font(.custom(Font.medium.rawValue, size: 15))
|
||||
.appFont(size: 15, weight: .medium)
|
||||
.foregroundColor(Color(hex: "bbbbbb"))
|
||||
|
||||
HStack(spacing: 13.3) {
|
||||
|
||||
@@ -52,7 +52,7 @@ struct LiveRoomProfileDialog: View {
|
||||
if isSpeaker {
|
||||
if profileInfo.role == .LISTENER, let onClickInviteSpeaker = onClickInviteSpeaker {
|
||||
Text("스피커로 초대")
|
||||
.font(.custom(Font.medium.rawValue, size: 10))
|
||||
.appFont(size: 10, weight: .medium)
|
||||
.foregroundColor(.button)
|
||||
.padding(.horizontal, 15.4)
|
||||
.padding(.vertical, 8.3)
|
||||
@@ -67,7 +67,7 @@ struct LiveRoomProfileDialog: View {
|
||||
if (memberId == creatorId || memberId == profileInfo.id) && profileInfo.id != creatorId && profileInfo.role == .SPEAKER,
|
||||
let onClickChangeListener = onClickChangeListener {
|
||||
Text("리스너로 변경")
|
||||
.font(.custom(Font.medium.rawValue, size: 10))
|
||||
.appFont(size: 10, weight: .medium)
|
||||
.foregroundColor(.button)
|
||||
.padding(.horizontal, 15.4)
|
||||
.padding(.vertical, 8.3)
|
||||
|
||||
@@ -22,14 +22,14 @@ struct LiveRoomProfileItemTitleView: View {
|
||||
|
||||
if let count = count {
|
||||
Text("\(count)")
|
||||
.font(.custom(Font.medium.rawValue, size: 13))
|
||||
.appFont(size: 13, weight: .medium)
|
||||
.foregroundColor(Color.button)
|
||||
.padding(.leading, 6.7)
|
||||
}
|
||||
|
||||
if let totalCount = totalCount {
|
||||
Text("/\(totalCount > 5 ? 5 : totalCount - 1)")
|
||||
.font(.custom(Font.medium.rawValue, size: 13))
|
||||
.appFont(size: 13, weight: .medium)
|
||||
.foregroundColor(Color.graybb)
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ struct LiveRoomProfileItemMasterView: View {
|
||||
.padding(.leading, 16.7)
|
||||
|
||||
Text(nickname)
|
||||
.font(.custom(Font.medium.rawValue, size: 14))
|
||||
.appFont(size: 14, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
.padding(.leading, 4)
|
||||
}
|
||||
@@ -114,7 +114,7 @@ struct LiveRoomProfileItemUserView: View {
|
||||
.padding(.leading, 16.7)
|
||||
|
||||
Text(nickname)
|
||||
.font(.custom(Font.medium.rawValue, size: 14))
|
||||
.appFont(size: 14, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
.lineLimit(2)
|
||||
.multilineTextAlignment(.leading)
|
||||
@@ -122,7 +122,7 @@ struct LiveRoomProfileItemUserView: View {
|
||||
.padding(.trailing, 10)
|
||||
} else {
|
||||
Text(nickname)
|
||||
.font(.custom(Font.medium.rawValue, size: 14))
|
||||
.appFont(size: 14, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
.lineLimit(2)
|
||||
.multilineTextAlignment(.leading)
|
||||
@@ -133,7 +133,7 @@ struct LiveRoomProfileItemUserView: View {
|
||||
|
||||
if role == .LISTENER && isStaff {
|
||||
Text("스피커로 초대")
|
||||
.font(.custom(Font.medium.rawValue, size: 10))
|
||||
.appFont(size: 10, weight: .medium)
|
||||
.foregroundColor(.white)
|
||||
.padding(.horizontal, 5.5)
|
||||
.padding(.vertical, 12)
|
||||
@@ -150,7 +150,7 @@ struct LiveRoomProfileItemUserView: View {
|
||||
|
||||
if role == .SPEAKER && (userId == UserDefaults.int(forKey: .userId) || isStaff) {
|
||||
Text("리스너로 변경")
|
||||
.font(.custom(Font.medium.rawValue, size: 10))
|
||||
.appFont(size: 10, weight: .medium)
|
||||
.foregroundColor(.white)
|
||||
.padding(.horizontal, 5.5)
|
||||
.padding(.vertical, 12)
|
||||
@@ -163,7 +163,7 @@ struct LiveRoomProfileItemUserView: View {
|
||||
|
||||
if role != .MANAGER && creatorId == UserDefaults.int(forKey: .userId) {
|
||||
Text("채금")
|
||||
.font(.custom(Font.medium.rawValue, size: 10))
|
||||
.appFont(size: 10, weight: .medium)
|
||||
.foregroundColor(.white)
|
||||
.padding(.horizontal, 5.5)
|
||||
.padding(.vertical, 12)
|
||||
|
||||
@@ -178,12 +178,12 @@ struct LiveRoomProfilesDialogView: View {
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
Text("\(roomInfo.participantsCount)")
|
||||
.font(.custom(Font.medium.rawValue, size: 14))
|
||||
.appFont(size: 14, weight: .medium)
|
||||
.foregroundColor(Color.button)
|
||||
.padding(.leading, 6.7)
|
||||
|
||||
Text("/\(roomInfo.totalAvailableParticipantsCount)")
|
||||
.font(.custom(Font.medium.rawValue, size: 14))
|
||||
.appFont(size: 14, weight: .medium)
|
||||
.foregroundColor(Color.graybb)
|
||||
|
||||
Spacer()
|
||||
|
||||
@@ -49,7 +49,7 @@ struct LiveRoomUserProfileDialogView: View {
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
Text(userProfile.gender)
|
||||
.font(.custom(Font.medium.rawValue, size: 11.3))
|
||||
.appFont(size: 11.3, weight: .medium)
|
||||
.foregroundColor(.white)
|
||||
.padding(.horizontal, 5.3)
|
||||
.padding(.vertical, 3)
|
||||
@@ -176,7 +176,7 @@ struct LiveRoomUserProfileDialogView: View {
|
||||
|
||||
if let _ = userProfile.isFollowing, !userProfile.tags.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
|
||||
Text(userProfile.tags)
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.button)
|
||||
.lineSpacing(3)
|
||||
.padding(.top, 21.3)
|
||||
@@ -184,7 +184,7 @@ struct LiveRoomUserProfileDialogView: View {
|
||||
|
||||
if let _ = userProfile.isFollowing, !userProfile.introduce.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
|
||||
Text(userProfile.introduce)
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.button)
|
||||
.lineLimit(introduceLineLimit)
|
||||
.lineSpacing(3)
|
||||
|
||||
Reference in New Issue
Block a user