Skip to content

Commit

Permalink
refactor: update button colors
Browse files Browse the repository at this point in the history
  • Loading branch information
juandahurt committed Jun 11, 2022
1 parent 1ebff14 commit b5fcefe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/Purace/Views/Basic/Button/PuraceButtonView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public struct PuraceButtonView: View {
case .loud:
return .white
case .quiet:
return PuraceStyle.Color.B1
return PuraceStyle.Color.G1
case .custom(_, _, let textColor):
return textColor
}
Expand All @@ -38,9 +38,9 @@ public struct PuraceButtonView: View {
private func getBackgroundColor() -> Color {
switch type {
case .loud:
return PuraceStyle.Color.B2
return PuraceStyle.Color.G2
case .quiet:
return PuraceStyle.Color.B5
return PuraceStyle.Color.G6
case .custom(let backgroundColor, _, _):
return backgroundColor
}
Expand All @@ -49,9 +49,9 @@ public struct PuraceButtonView: View {
private func getOnPressedBackgroundColor() -> Color {
switch type {
case .loud:
return PuraceStyle.Color.B1
return PuraceStyle.Color.G1
case .quiet:
return PuraceStyle.Color.B4
return PuraceStyle.Color.G5
case .custom(_, let onPressedColor, _):
return onPressedColor
}
Expand Down

0 comments on commit b5fcefe

Please sign in to comment.