From 311a20a0e0094374bcc826b1f6d8e454ae3c5a7a Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 22 Oct 2021 17:49:57 +0000 Subject: [PATCH] Fixes #2665 - Share text needs light theme color (#2667) (#2683) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 4883298da2773b004c071926a3a165d710d4645c) Co-authored-by: Stefan Arentz Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- Blockzilla/Pro Tips/ShareTrackersViewController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Blockzilla/Pro Tips/ShareTrackersViewController.swift b/Blockzilla/Pro Tips/ShareTrackersViewController.swift index 5690194733..a6d30ca17b 100644 --- a/Blockzilla/Pro Tips/ShareTrackersViewController.swift +++ b/Blockzilla/Pro Tips/ShareTrackersViewController.swift @@ -21,7 +21,7 @@ class ShareTrackersViewController: UIViewController { private lazy var trackerStatsLabel: SmartLabel = { let trackerStatsLabel = SmartLabel() trackerStatsLabel.font = UIConstants.fonts.shareTrackerStatsLabel - trackerStatsLabel.textColor = UIConstants.colors.defaultFont + trackerStatsLabel.textColor = .secondaryText trackerStatsLabel.numberOfLines = 0 trackerStatsLabel.minimumScaleFactor = UIConstants.layout.homeViewLabelMinimumScale trackerStatsLabel.setContentHuggingPriority(.required, for: .horizontal) @@ -38,13 +38,13 @@ class ShareTrackersViewController: UIViewController { private lazy var trackerStatsShareButton: UIButton = { var button = UIButton() - button.setTitleColor(UIConstants.colors.defaultFont, for: .normal) + button.setTitleColor(.secondaryText, for: .normal) button.titleLabel?.font = UIConstants.fonts.shareTrackerStatsLabel button.titleLabel?.textAlignment = .center button.setTitle(UIConstants.strings.share, for: .normal) button.addTarget(self, action: #selector(shareTapped), for: .touchUpInside) button.titleLabel?.numberOfLines = 0 - button.layer.borderColor = UIConstants.colors.defaultFont.cgColor + button.layer.borderColor = UIColor.secondaryText.cgColor button.layer.borderWidth = 1.0 button.layer.cornerRadius = 4 return button