From d8ef4f96e0cc00bb9a0eda8e6afa4229bf2a4e9e Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Wed, 20 Nov 2019 20:00:51 +0100 Subject: [PATCH] Fix text size in purchase cells --- Passepartout-iOS/Global/Theme.swift | 4 ++++ Passepartout-iOS/Scenes/Purchase/PurchaseTableViewCell.swift | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Passepartout-iOS/Global/Theme.swift b/Passepartout-iOS/Global/Theme.swift index 60c8d211..b1bbc671 100644 --- a/Passepartout-iOS/Global/Theme.swift +++ b/Passepartout-iOS/Global/Theme.swift @@ -137,6 +137,10 @@ extension UILabel { font = .preferredFont(forTextStyle: .body) textColor = theme.palette.accent1 } + + func applySecondarySize(_ theme: Theme) { + font = .preferredFont(forTextStyle: .callout) + } } extension UITextField { diff --git a/Passepartout-iOS/Scenes/Purchase/PurchaseTableViewCell.swift b/Passepartout-iOS/Scenes/Purchase/PurchaseTableViewCell.swift index a32dc6e3..7df95810 100644 --- a/Passepartout-iOS/Scenes/Purchase/PurchaseTableViewCell.swift +++ b/Passepartout-iOS/Scenes/Purchase/PurchaseTableViewCell.swift @@ -38,6 +38,8 @@ class PurchaseTableViewCell: UITableViewCell { labelTitle?.applyAccent(.current) labelPrice?.applyAccent(.current) + labelDescription?.apply(.current) + labelDescription?.applySecondarySize(.current) } func fill(product: SKProduct, customDescription: String? = nil) {