Skip to content

Commit 2ac469e

Browse files
committed
make card titles bold
1 parent 0c88ece commit 2ac469e

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

Modules/Sources/PointOfSale/Presentation/Settings/POSInformationCard.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,30 @@ struct POSInformationCardFieldRow: View {
2222
case primary
2323
}
2424

25+
enum LabelStyle {
26+
case regular
27+
case bold
28+
}
29+
2530
let label: String
2631
let value: String
2732
let showSeparator: Bool
33+
let labelStyle: LabelStyle
2834
let buttonTitle: String?
2935
let buttonAction: (() -> Void)?
3036
let buttonStyle: ButtonStyle
3137

3238
init(label: String,
3339
value: String,
3440
showSeparator: Bool = true,
41+
labelStyle: LabelStyle = .regular,
3542
buttonTitle: String? = nil,
3643
buttonAction: (() -> Void)? = nil,
3744
buttonStyle: ButtonStyle = .default) {
3845
self.label = label
3946
self.value = value
4047
self.showSeparator = showSeparator
48+
self.labelStyle = labelStyle
4149
self.buttonTitle = buttonTitle
4250
self.buttonAction = buttonAction
4351
self.buttonStyle = buttonStyle
@@ -48,7 +56,7 @@ struct POSInformationCardFieldRow: View {
4856
HStack(alignment: .center, spacing: POSSpacing.medium) {
4957
VStack(alignment: .leading, spacing: POSPadding.small) {
5058
Text(label)
51-
.font(.posBodyMediumRegular())
59+
.font(labelStyle == .bold ? .posBodyMediumBold : .posBodyMediumRegular())
5260
Text(value)
5361
.font(.posBodyMediumRegular())
5462
.foregroundStyle(.secondary)

Modules/Sources/PointOfSale/Presentation/Settings/POSInformationCardFieldRowWithToggle.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct POSInformationCardFieldRowWithToggle: View {
2121
HStack(alignment: .center, spacing: POSSpacing.medium) {
2222
VStack(alignment: .leading, spacing: POSPadding.small) {
2323
Text(label)
24-
.font(.posBodyMediumRegular())
24+
.font(.posBodyMediumBold)
2525
Text(value)
2626
.font(.posBodyMediumRegular())
2727
.foregroundStyle(.secondary)

Modules/Sources/PointOfSale/Presentation/Settings/POSSettingsLocalCatalogDetailView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ private extension POSSettingsLocalCatalogDetailView {
7878
label: Localization.manualCatalogUpdate,
7979
value: Localization.manualUpdateInfo,
8080
showSeparator: false,
81+
labelStyle: .bold,
8182
buttonTitle: Localization.updateCatalog,
8283
buttonAction: {
8384
Task {

0 commit comments

Comments
 (0)