라이브 UI 변경

This commit is contained in:
Yu Sung
2024-01-18 17:32:14 +09:00
parent 7ce5a36172
commit 01833fbc1f
37 changed files with 1763 additions and 1135 deletions

View File

@@ -44,7 +44,7 @@ struct LiveRoomDonationDialogView: View {
Text("후원하기")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color(hex: "eeeeee"))
.foregroundColor(Color.grayee)
Spacer()
@@ -55,7 +55,7 @@ struct LiveRoomDonationDialogView: View {
Text("\(can)")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color(hex: "eeeeee"))
.foregroundColor(Color.grayee)
Image("ic_forward")
}
@@ -69,15 +69,15 @@ struct LiveRoomDonationDialogView: View {
Rectangle()
.frame(height: 1)
.foregroundColor(Color(hex: "909090"))
.foregroundColor(Color.gray90)
.padding(.top, 16)
TextField("몇 캔을 후원할까요?", text: $donationCan)
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "eeeeee"))
.foregroundColor(Color.grayee)
.padding(13.3)
.keyboardType(.numberPad)
.background(Color(hex: "303030"))
.background(Color.gray30)
.cornerRadius(6.7)
.padding(.horizontal, 20)
.padding(.top, 16)
@@ -88,7 +88,7 @@ struct LiveRoomDonationDialogView: View {
.foregroundColor(.white)
.padding(.vertical, 12.7)
.frame(width: 74)
.background(Color(hex: "9970ff"))
.background(Color.button)
.cornerRadius(6.7)
.onTapGesture {
if !donationCan.trimmingCharacters(in: .whitespaces).isEmpty,
@@ -106,7 +106,7 @@ struct LiveRoomDonationDialogView: View {
.foregroundColor(.white)
.padding(.vertical, 12.7)
.frame(width: 74)
.background(Color(hex: "9970ff"))
.background(Color.button)
.cornerRadius(6.7)
.onTapGesture {
if !donationCan.trimmingCharacters(in: .whitespaces).isEmpty, let can = Int(donationCan) {
@@ -122,7 +122,7 @@ struct LiveRoomDonationDialogView: View {
.foregroundColor(.white)
.padding(.vertical, 12.7)
.frame(width: 74)
.background(Color(hex: "9970ff"))
.background(Color.button)
.cornerRadius(6.7)
.onTapGesture {
if !donationCan.trimmingCharacters(in: .whitespaces).isEmpty,
@@ -140,7 +140,7 @@ struct LiveRoomDonationDialogView: View {
.foregroundColor(.white)
.padding(.vertical, 12.7)
.frame(width: 74)
.background(Color(hex: "9970ff"))
.background(Color.button)
.cornerRadius(6.7)
.onTapGesture {
if !donationCan.trimmingCharacters(in: .whitespaces).isEmpty,
@@ -156,7 +156,7 @@ struct LiveRoomDonationDialogView: View {
Rectangle()
.frame(height: 1)
.foregroundColor(Color(hex: "909090"))
.foregroundColor(Color.gray90)
.padding(.vertical, 18.7)
.padding(.horizontal, 20)
@@ -169,14 +169,14 @@ struct LiveRoomDonationDialogView: View {
.clipShape(Circle())
.overlay(
Circle()
.stroke(Color(hex: "bbbbbb"), lineWidth: 1)
.stroke(Color.graybb, lineWidth: 1)
)
TextField("함께 보낼 메시지 입력(최대 50자)", text: $donationMessage)
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "eeeeee"))
.foregroundColor(Color.grayee)
.padding(13.3)
.background(Color(hex: "303030"))
.background(Color.gray30)
.cornerRadius(6.7)
.onReceive(Just(donationMessage)) { _ in
limitText()
@@ -187,15 +187,15 @@ struct LiveRoomDonationDialogView: View {
HStack(spacing: 13.3) {
Text("취소")
.font(.custom(Font.bold.rawValue, size: 15))
.foregroundColor(Color(hex: "9970ff"))
.foregroundColor(Color.button)
.padding(.vertical, 16)
.frame(width: (screenSize().width - 53.3) / 3)
.background(Color(hex: "9970ff").opacity(0.2))
.background(Color.button.opacity(0.2))
.cornerRadius(10)
.overlay(
RoundedRectangle(cornerRadius: 10)
.strokeBorder()
.foregroundColor(Color(hex: "9970ff"))
.foregroundColor(Color.button)
)
.onTapGesture {
isShowing = false
@@ -206,7 +206,7 @@ struct LiveRoomDonationDialogView: View {
.foregroundColor(.white)
.padding(.vertical, 16)
.frame(width: (screenSize().width - 53.3) * 2 / 3)
.background(Color(hex: "9970ff"))
.background(Color.button)
.cornerRadius(10)
.onTapGesture {
if !donationCan.trimmingCharacters(in: .whitespaces).isEmpty,
@@ -224,7 +224,7 @@ struct LiveRoomDonationDialogView: View {
}
.padding(.top, 21.3)
.padding(.bottom, 16)
.background(Color(hex: "222222"))
.background(Color.gray22)
.cornerRadius(20, corners: [.topLeft, .topRight])
}
.popup(isPresented: $isShowErrorPopup, type: .toast, position: .bottom, autohideIn: 1.3) {
@@ -234,7 +234,7 @@ struct LiveRoomDonationDialogView: View {
.padding(.vertical, 13.3)
.frame(width: screenSize().width - 66.7, alignment: .center)
.font(.custom(Font.medium.rawValue, size: 12))
.background(Color(hex: "9970ff"))
.background(Color.button)
.foregroundColor(Color.white)
.multilineTextAlignment(.leading)
.cornerRadius(20)