Skip to content

Commit

Permalink
[design] #167 안읽음 뱃지 디자인 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Dec 10, 2024
1 parent ef1fed7 commit 9f38f1f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Projects/DSKit/Sources/Components/PokitBadge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,14 @@ public struct PokitBadge: View {
.background {
RoundedRectangle(cornerRadius: 4, style: .continuous)
.fill(backgroundColor)
.overlay {
if state == .unRead {
RoundedRectangle(cornerRadius: 4, style: .continuous)
.stroke(.pokit(.border(.brand)), lineWidth: 1)
}
}
}
}

private var backgroundColor: Color {
switch self.state {
case .default, .small, .memo, .member: return .pokit(.bg(.primary))
case .unCategorized: return .pokit(.color(.grayScale(._50)))
case .unRead: return .pokit(.bg(.base))
case .unRead: return Color(red: 1, green: 0.95, blue: 0.92)
}
}

Expand Down

0 comments on commit 9f38f1f

Please sign in to comment.