인기 콘텐츠 카테고리 뱃지 - stroke 색상 변경
This commit is contained in:
parent
34f2348aa0
commit
aa87f0367b
|
@ -20,18 +20,18 @@ struct ContentMainRankingSortView: View {
|
||||||
let sort = sorts[index]
|
let sort = sorts[index]
|
||||||
Text(sort)
|
Text(sort)
|
||||||
.font(.custom(Font.medium.rawValue, size: 14.7))
|
.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(.horizontal, 13.3)
|
||||||
.padding(.vertical, 9.3)
|
.padding(.vertical, 9.3)
|
||||||
.border(
|
.border(
|
||||||
Color(hex: selectedSort == sort ? "9970ff" : "eeeeee"),
|
selectedSort == sort ? Color.button : Color.grayee,
|
||||||
width: 0.5
|
width: 0.5
|
||||||
)
|
)
|
||||||
.cornerRadius(16.7)
|
.cornerRadius(16.7)
|
||||||
.overlay(
|
.overlay(
|
||||||
RoundedRectangle(cornerRadius: CGFloat(16.7))
|
RoundedRectangle(cornerRadius: CGFloat(16.7))
|
||||||
.stroke(lineWidth: 0.5)
|
.stroke(lineWidth: 0.5)
|
||||||
.foregroundColor(Color(hex: selectedSort == sort ? "9970ff" : "eeeeee"))
|
.foregroundColor(selectedSort == sort ? Color.button : Color.grayee)
|
||||||
)
|
)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
if selectedSort != sort {
|
if selectedSort != sort {
|
||||||
|
|
Loading…
Reference in New Issue