chore: Update translated status footer style

This commit is contained in:
Marcus Kida 2022-12-07 16:00:18 +01:00
parent dc174b4b6d
commit bfdb2e2de9
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
1 changed files with 7 additions and 1 deletions

View File

@ -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