From bfdb2e2de9a4ef7d32d20fe650aefe78fe845599 Mon Sep 17 00:00:00 2001 From: Marcus Kida Date: Wed, 7 Dec 2022 16:00:18 +0100 Subject: [PATCH] chore: Update translated status footer style --- .../Sources/MastodonUI/View/Content/StatusView.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MastodonSDK/Sources/MastodonUI/View/Content/StatusView.swift b/MastodonSDK/Sources/MastodonUI/View/Content/StatusView.swift index 95ec5ff97..4ac1735c6 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Content/StatusView.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Content/StatusView.swift @@ -182,11 +182,17 @@ public final class StatusView: UIView { activityIndicatorView.stopAnimating() return activityIndicatorView }() - private let translatedInfoLabel = UILabel() + private let translatedInfoLabel: UILabel = { + let label = UILabel() + label.font = UIFontMetrics(forTextStyle: .footnote).scaledFont(for: .systemFont(ofSize: 13, weight: .regular)) + label.textColor = Asset.Colors.Label.secondary.color + return label + }() lazy var translatedInfoView: UIView = { let containerView = UIView() let revertButton = UIButton() + revertButton.titleLabel?.font = UIFontMetrics(forTextStyle: .footnote).scaledFont(for: .systemFont(ofSize: 13, weight: .bold)) revertButton.setTitle("Show Original", for: .normal) revertButton.setTitleColor(Asset.Colors.brand.color, for: .normal) revertButton.addAction(UIAction { [weak self] _ in