인기 콘텐츠 카테고리 뱃지 - stroke 색상 변경

This commit is contained in:
Yu Sung 2024-01-26 12:59:08 +09:00
parent 34f2348aa0
commit aa87f0367b
1 changed files with 3 additions and 3 deletions

View File

@ -20,18 +20,18 @@ struct ContentMainRankingSortView: View {
let sort = sorts[index]
Text(sort)
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color(hex: selectedSort == sort ? "9970ff" : "777777"))
.foregroundColor(selectedSort == sort ? Color.button : Color.gray77)
.padding(.horizontal, 13.3)
.padding(.vertical, 9.3)
.border(
Color(hex: selectedSort == sort ? "9970ff" : "eeeeee"),
selectedSort == sort ? Color.button : Color.grayee,
width: 0.5
)
.cornerRadius(16.7)
.overlay(
RoundedRectangle(cornerRadius: CGFloat(16.7))
.stroke(lineWidth: 0.5)
.foregroundColor(Color(hex: selectedSort == sort ? "9970ff" : "eeeeee"))
.foregroundColor(selectedSort == sort ? Color.button : Color.grayee)
)
.onTapGesture {
if selectedSort != sort {