Skip to content

Commit f3f2002

Browse files
committed
Remove all legacy POS button colors. Replace existing usage with DS color.
1 parent 1ea5411 commit f3f2002

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

WooCommerce/Classes/POS/Presentation/PointOfSaleCollectCashView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ private extension PointOfSaleCollectCashView {
179179
}
180180

181181
private var navigationForegroundColor: Color {
182-
isLoading ? .posBackgroundButtonDisabled : .primary
182+
isLoading ? .posDisabledContainer : .primary
183183
}
184184

185185
enum Localization {

WooCommerce/Classes/POS/Utils/Color+WooCommercePOS.swift

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,6 @@ extension Color {
3737
)
3838
)
3939
}
40-
41-
// MARK: - Buttons
42-
43-
static var posPrimaryButtonBackground: Color = .posAccent
44-
45-
static var posSecondaryButtonForeground: Color = .posAccent
46-
47-
static var posTextButtonForeground: Color = .posAccent
48-
49-
static var posTextButtonForegroundPressed: Color {
50-
return Color(
51-
UIColor(
52-
light: .withColorStudio(.wooCommercePurple, shade: .shade60),
53-
dark: .withColorStudio(.wooCommercePurple, shade: .shade40)
54-
)
55-
)
56-
}
57-
58-
static var posTextButtonDisabled: Color {
59-
return .posGray
60-
}
61-
62-
static var posBackgroundButtonDisabled: Color {
63-
return .init(red: 195.0 / 255.0, green: 196.0 / 255.0, blue: 199.0 / 255.0)
64-
}
6540
}
6641

6742
// MARK: - Non-adaptive colors

0 commit comments

Comments
 (0)