Skip to content

Commit 0ad0bc4

Browse files
committed
Replace posSecondaryText with posOnSurfaceVariantHighest as they are exactly the same.
1 parent 614e623 commit 0ad0bc4

File tree

6 files changed

+7
-46
lines changed

6 files changed

+7
-46
lines changed

WooCommerce/Classes/POS/Colors/Color+POSColorPalette.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ extension Color {
4747
static var posOnAlert: Color { Color(.posOnAlert) }
4848

4949
// MARK: - Text Colors
50-
static var posSecondaryText: Color { Color(.posSecondaryText) }
5150
static var posTertiaryText: Color { Color(.posTertiaryText) }
5251

5352
// MARK: - Other

WooCommerce/Classes/POS/Colors/POSColorPalette.xcassets/posSecondaryText.colorset/Contents.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/PointOfSaleItemListEmptyView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ struct PointOfSaleItemListEmptyView: View {
1414
.resizable()
1515
.aspectRatio(contentMode: .fit)
1616
.frame(width: Constants.iconSize, height: Constants.iconSize)
17-
.foregroundColor(.posSecondaryText)
17+
.foregroundColor(.posOnSurfaceVariantHighest)
1818
Text(title)
19-
.foregroundStyle(Color.posSecondaryText)
19+
.foregroundStyle(Color.posOnSurfaceVariantHighest)
2020
.font(.posHeading)
2121
Text(subtitle)
22-
.foregroundStyle(Color.posSecondaryText)
22+
.foregroundStyle(Color.posOnSurfaceVariantHighest)
2323
.font(.posBodyLargeRegular())
2424
.padding([.leading, .trailing])
2525
Text(hint)
26-
.foregroundStyle(Color.posSecondaryText)
26+
.foregroundStyle(Color.posOnSurfaceVariantHighest)
2727
.font(.posBodyLargeRegular())
2828
.padding([.leading, .trailing])
2929
Spacer()

WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/PointOfSaleItemListFullscreenView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct PointOfSaleItemListFullscreenView<Content: View>: View {
88
VStack(alignment: .center, spacing: PointOfSaleItemListErrorLayout.headerSpacing) {
99
POSHeaderTitleView(
1010
title: Localization.title,
11-
foregroundColor: .posSecondaryText
11+
foregroundColor: .posOnSurfaceVariantHighest
1212
)
1313
Spacer()
1414
}

WooCommerce/Classes/POS/Presentation/Item Selector/ItemListErrorCardView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct ItemListErrorCardView: View {
2020
.font(Constants.itemTitleFont)
2121

2222
Text(errorState.subtitle)
23-
.foregroundStyle(Color.posSecondaryText)
23+
.foregroundStyle(Color.posOnSurfaceVariantHighest)
2424
.font(Constants.itemDetailFont)
2525
}
2626
.padding(.horizontal, Constants.horizontalTextPadding * (1 / scale))

WooCommerce/Classes/POS/Presentation/PointOfSaleCollectCashView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct PointOfSaleCollectCashView: View {
5858
if let changeDue = changeDueMessage {
5959
Text(changeDue)
6060
.font(.posBodyLargeRegular())
61-
.foregroundColor(.posSecondaryText)
61+
.foregroundColor(.posOnSurfaceVariantHighest)
6262
}
6363

6464
if let errorMessage = errorMessage {

0 commit comments

Comments
 (0)