Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Fixes #2665 - Share text needs light theme color (#2667) (#2683)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 4883298)

Co-authored-by: Stefan Arentz <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
mergify[bot] and st3fan authored Oct 22, 2021
1 parent 7502e74 commit 311a20a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Blockzilla/Pro Tips/ShareTrackersViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 311a20a

Please sign in to comment.