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

Fixes #2665 - Share text needs light theme color (backport #2667) #2683

Merged
merged 2 commits into from
Oct 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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