Adjusts illegible Source tint colors for SourceDetailViewController

This commit is contained in:
Riley Testut
2023-10-16 19:10:34 -05:00
committed by Magesh K
parent bff9eef2dd
commit 20cf2326c6
3 changed files with 20 additions and 5 deletions

View File

@@ -60,8 +60,6 @@ class SourceDetailContentViewController: UICollectionViewController
{
super.viewDidLoad()
self.view.tintColor = self.source.effectiveTintColor
let collectionViewLayout = self.makeLayout(source: self.source)
self.collectionView.collectionViewLayout = collectionViewLayout

View File

@@ -195,7 +195,7 @@ class SourceDetailViewController: HeaderContentViewController<SourceHeaderView,
case false?:
title = NSLocalizedString("ADD", comment: "")
self.navigationBarButton.tintColor = self.source.effectiveTintColor ?? .altPrimary
self.navigationBarButton.tintColor = self.source.effectiveTintColor?.adjustedForDisplay ?? .altPrimary
self.addButton.isHidden = false
self.navigationBarButton.isHidden = false