mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 03:33:36 +01:00
Changes app tint color to Red (from Green)
This commit is contained in:
@@ -392,7 +392,7 @@ private extension AppViewController
|
|||||||
navigationController?.navigationBar.barStyle = .default
|
navigationController?.navigationBar.barStyle = .default
|
||||||
navigationController?.navigationBar.alpha = 1.0
|
navigationController?.navigationBar.alpha = 1.0
|
||||||
navigationController?.navigationBar.barTintColor = .white
|
navigationController?.navigationBar.barTintColor = .white
|
||||||
navigationController?.navigationBar.tintColor = .altGreen
|
navigationController?.navigationBar.tintColor = .altRed
|
||||||
}
|
}
|
||||||
|
|
||||||
func hideNavigationBar(for navigationController: UINavigationController? = nil)
|
func hideNavigationBar(for navigationController: UINavigationController? = nil)
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ private extension AppDelegate
|
|||||||
{
|
{
|
||||||
func setTintColor()
|
func setTintColor()
|
||||||
{
|
{
|
||||||
self.window?.tintColor = .altGreen
|
self.window?.tintColor = .altRed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -104,7 +104,6 @@ private extension AuthenticationViewController
|
|||||||
{
|
{
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
let toastView = ToastView(text: NSLocalizedString("Failed to Log In", comment: ""), detailText: error.localizedDescription)
|
let toastView = ToastView(text: NSLocalizedString("Failed to Log In", comment: ""), detailText: error.localizedDescription)
|
||||||
toastView.tintColor = .altGreen
|
|
||||||
toastView.show(in: self.navigationController?.view ?? self.view)
|
toastView.show(in: self.navigationController?.view ?? self.view)
|
||||||
self.toastView = toastView
|
self.toastView = toastView
|
||||||
|
|
||||||
|
|||||||
@@ -642,7 +642,7 @@ World</string>
|
|||||||
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" largeTitles="YES" id="dIv-qd-9L5" customClass="NavigationBar" customModule="AltStore" customModuleProvider="target">
|
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" largeTitles="YES" id="dIv-qd-9L5" customClass="NavigationBar" customModule="AltStore" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="20" width="375" height="96"/>
|
<rect key="frame" x="0.0" y="20" width="375" height="96"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<color key="tintColor" name="Green"/>
|
<color key="tintColor" name="Red"/>
|
||||||
</navigationBar>
|
</navigationBar>
|
||||||
<nil name="viewControllers"/>
|
<nil name="viewControllers"/>
|
||||||
<connections>
|
<connections>
|
||||||
@@ -658,7 +658,7 @@ World</string>
|
|||||||
<objects>
|
<objects>
|
||||||
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="3Ew-ox-i4n" sceneMemberID="viewController">
|
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="3Ew-ox-i4n" sceneMemberID="viewController">
|
||||||
<tabBarItem key="tabBarItem" title="My Apps" image="MyApps" id="4gT-9u-k7y">
|
<tabBarItem key="tabBarItem" title="My Apps" image="MyApps" id="4gT-9u-k7y">
|
||||||
<color key="badgeColor" name="Green"/>
|
<color key="badgeColor" name="Red"/>
|
||||||
</tabBarItem>
|
</tabBarItem>
|
||||||
<toolbarItems/>
|
<toolbarItems/>
|
||||||
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" largeTitles="YES" id="CzO-Kt-BlZ" customClass="NavigationBar" customModule="AltStore" customModuleProvider="target">
|
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" largeTitles="YES" id="CzO-Kt-BlZ" customClass="NavigationBar" customModule="AltStore" customModuleProvider="target">
|
||||||
@@ -776,7 +776,7 @@ World</string>
|
|||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="No Updates Available" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="z04-yg-x1t">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="No Updates Available" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="z04-yg-x1t">
|
||||||
<rect key="frame" x="104" y="20" width="167" height="20.5"/>
|
<rect key="frame" x="104" y="20" width="167" height="20.5"/>
|
||||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="17"/>
|
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="17"/>
|
||||||
<color key="textColor" name="Green"/>
|
<color key="textColor" name="Red"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
</subviews>
|
</subviews>
|
||||||
@@ -860,12 +860,12 @@ World</string>
|
|||||||
<image name="Browse" width="19.5" height="20.5"/>
|
<image name="Browse" width="19.5" height="20.5"/>
|
||||||
<image name="MyApps" width="28" height="24"/>
|
<image name="MyApps" width="28" height="24"/>
|
||||||
<image name="Settings" width="21" height="21"/>
|
<image name="Settings" width="21" height="21"/>
|
||||||
<namedColor name="Green">
|
<namedColor name="Red">
|
||||||
<color red="0.22352941176470589" green="0.49411764705882355" blue="0.396078431372549" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
<color red="0.92156862745098034" green="0.27450980392156865" blue="0.23137254901960785" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
</namedColor>
|
</namedColor>
|
||||||
</resources>
|
</resources>
|
||||||
<inferredMetricsTieBreakers>
|
<inferredMetricsTieBreakers>
|
||||||
<segue reference="cnd-KK-o60"/>
|
<segue reference="cnd-KK-o60"/>
|
||||||
</inferredMetricsTieBreakers>
|
</inferredMetricsTieBreakers>
|
||||||
<color key="tintColor" name="Green"/>
|
<color key="tintColor" name="Red"/>
|
||||||
</document>
|
</document>
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ private extension BrowseViewController
|
|||||||
// Otherwise, cell reuse can mess up some cached values.
|
// Otherwise, cell reuse can mess up some cached values.
|
||||||
cell.actionButton.isIndicatingActivity = false
|
cell.actionButton.isIndicatingActivity = false
|
||||||
|
|
||||||
let tintColor = app.tintColor ?? .altGreen
|
let tintColor = app.tintColor ?? .altRed
|
||||||
cell.tintColor = tintColor
|
cell.tintColor = tintColor
|
||||||
|
|
||||||
if app.installedApp == nil
|
if app.installedApp == nil
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ import UIKit
|
|||||||
|
|
||||||
extension UIColor
|
extension UIColor
|
||||||
{
|
{
|
||||||
static let altPurple = UIColor(named: "Purple")!
|
|
||||||
static let altGreen = UIColor(named: "Green")!
|
|
||||||
static let altRed = UIColor(named: "Red")!
|
static let altRed = UIColor(named: "Red")!
|
||||||
static let altPink = UIColor(named: "Pink")!
|
static let altPink = UIColor(named: "Pink")!
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class MyAppsViewController: UICollectionViewController
|
|||||||
|
|
||||||
self.sideloadingProgressView = UIProgressView(progressViewStyle: .bar)
|
self.sideloadingProgressView = UIProgressView(progressViewStyle: .bar)
|
||||||
self.sideloadingProgressView.translatesAutoresizingMaskIntoConstraints = false
|
self.sideloadingProgressView.translatesAutoresizingMaskIntoConstraints = false
|
||||||
self.sideloadingProgressView.progressTintColor = .altGreen
|
self.sideloadingProgressView.progressTintColor = .altRed
|
||||||
self.sideloadingProgressView.progress = 0
|
self.sideloadingProgressView.progress = 0
|
||||||
|
|
||||||
if let navigationBar = self.navigationController?.navigationBar
|
if let navigationBar = self.navigationController?.navigationBar
|
||||||
@@ -145,7 +145,7 @@ private extension MyAppsViewController
|
|||||||
dynamicDataSource.cellConfigurationHandler = { (cell, _, indexPath) in
|
dynamicDataSource.cellConfigurationHandler = { (cell, _, indexPath) in
|
||||||
cell.layer.cornerRadius = 20
|
cell.layer.cornerRadius = 20
|
||||||
cell.layer.masksToBounds = true
|
cell.layer.masksToBounds = true
|
||||||
cell.contentView.backgroundColor = UIColor.altGreen.withAlphaComponent(0.15)
|
cell.contentView.backgroundColor = UIColor.altRed.withAlphaComponent(0.15)
|
||||||
}
|
}
|
||||||
|
|
||||||
return dynamicDataSource
|
return dynamicDataSource
|
||||||
@@ -165,7 +165,7 @@ private extension MyAppsViewController
|
|||||||
guard let app = installedApp.storeApp else { return }
|
guard let app = installedApp.storeApp else { return }
|
||||||
|
|
||||||
let cell = cell as! UpdateCollectionViewCell
|
let cell = cell as! UpdateCollectionViewCell
|
||||||
cell.tintColor = app.tintColor ?? .altGreen
|
cell.tintColor = app.tintColor ?? .altRed
|
||||||
cell.nameLabel.text = app.name
|
cell.nameLabel.text = app.name
|
||||||
cell.versionDescriptionTextView.text = app.versionDescription
|
cell.versionDescriptionTextView.text = app.versionDescription
|
||||||
cell.appIconImageView.image = nil
|
cell.appIconImageView.image = nil
|
||||||
@@ -237,7 +237,7 @@ private extension MyAppsViewController
|
|||||||
let dataSource = RSTFetchedResultsCollectionViewPrefetchingDataSource<InstalledApp, UIImage>(fetchRequest: fetchRequest, managedObjectContext: DatabaseManager.shared.viewContext)
|
let dataSource = RSTFetchedResultsCollectionViewPrefetchingDataSource<InstalledApp, UIImage>(fetchRequest: fetchRequest, managedObjectContext: DatabaseManager.shared.viewContext)
|
||||||
dataSource.cellIdentifierHandler = { _ in "AppCell" }
|
dataSource.cellIdentifierHandler = { _ in "AppCell" }
|
||||||
dataSource.cellConfigurationHandler = { (cell, installedApp, indexPath) in
|
dataSource.cellConfigurationHandler = { (cell, installedApp, indexPath) in
|
||||||
let tintColor = installedApp.storeApp?.tintColor ?? .altGreen
|
let tintColor = installedApp.storeApp?.tintColor ?? .altRed
|
||||||
|
|
||||||
let cell = cell as! InstalledAppCollectionViewCell
|
let cell = cell as! InstalledAppCollectionViewCell
|
||||||
cell.tintColor = tintColor
|
cell.tintColor = tintColor
|
||||||
@@ -636,10 +636,10 @@ extension MyAppsViewController
|
|||||||
let headerView = collectionView.dequeueReusableSupplementaryView(ofKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: "UpdatesHeader", for: indexPath) as! UpdatesCollectionHeaderView
|
let headerView = collectionView.dequeueReusableSupplementaryView(ofKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: "UpdatesHeader", for: indexPath) as! UpdatesCollectionHeaderView
|
||||||
|
|
||||||
UIView.performWithoutAnimation {
|
UIView.performWithoutAnimation {
|
||||||
headerView.button.backgroundColor = UIColor.altGreen.withAlphaComponent(0.15)
|
headerView.button.backgroundColor = UIColor.altRed.withAlphaComponent(0.15)
|
||||||
headerView.button.setTitle("▾", for: .normal)
|
headerView.button.setTitle("▾", for: .normal)
|
||||||
headerView.button.titleLabel?.font = UIFont.boldSystemFont(ofSize: 28)
|
headerView.button.titleLabel?.font = UIFont.boldSystemFont(ofSize: 28)
|
||||||
headerView.button.setTitleColor(.altGreen, for: .normal)
|
headerView.button.setTitleColor(.altRed, for: .normal)
|
||||||
headerView.button.addTarget(self, action: #selector(MyAppsViewController.toggleAppUpdates), for: .primaryActionTriggered)
|
headerView.button.addTarget(self, action: #selector(MyAppsViewController.toggleAppUpdates), for: .primaryActionTriggered)
|
||||||
|
|
||||||
if self.isUpdateSectionCollapsed
|
if self.isUpdateSectionCollapsed
|
||||||
@@ -665,7 +665,7 @@ extension MyAppsViewController
|
|||||||
headerView.textLabel.text = NSLocalizedString("Installed", comment: "")
|
headerView.textLabel.text = NSLocalizedString("Installed", comment: "")
|
||||||
|
|
||||||
headerView.button.isIndicatingActivity = false
|
headerView.button.isIndicatingActivity = false
|
||||||
headerView.button.activityIndicatorView.color = .altGreen
|
headerView.button.activityIndicatorView.color = .altRed
|
||||||
headerView.button.setTitle(NSLocalizedString("Refresh All", comment: ""), for: .normal)
|
headerView.button.setTitle(NSLocalizedString("Refresh All", comment: ""), for: .normal)
|
||||||
headerView.button.addTarget(self, action: #selector(MyAppsViewController.refreshAllApps(_:)), for: .primaryActionTriggered)
|
headerView.button.addTarget(self, action: #selector(MyAppsViewController.refreshAllApps(_:)), for: .primaryActionTriggered)
|
||||||
headerView.button.isIndicatingActivity = self.isRefreshingAllApps
|
headerView.button.isIndicatingActivity = self.isRefreshingAllApps
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
"info" : {
|
|
||||||
"version" : 1,
|
|
||||||
"author" : "xcode"
|
|
||||||
},
|
|
||||||
"colors" : [
|
|
||||||
{
|
|
||||||
"idiom" : "universal",
|
|
||||||
"color" : {
|
|
||||||
"color-space" : "srgb",
|
|
||||||
"components" : {
|
|
||||||
"red" : "57",
|
|
||||||
"alpha" : "1.000",
|
|
||||||
"blue" : "101",
|
|
||||||
"green" : "126"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
"info" : {
|
|
||||||
"version" : 1,
|
|
||||||
"author" : "xcode"
|
|
||||||
},
|
|
||||||
"colors" : [
|
|
||||||
{
|
|
||||||
"idiom" : "universal",
|
|
||||||
"color" : {
|
|
||||||
"color-space" : "srgb",
|
|
||||||
"components" : {
|
|
||||||
"red" : "241",
|
|
||||||
"alpha" : "1.000",
|
|
||||||
"blue" : "62",
|
|
||||||
"green" : "172"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
"info" : {
|
|
||||||
"version" : 1,
|
|
||||||
"author" : "xcode"
|
|
||||||
},
|
|
||||||
"colors" : [
|
|
||||||
{
|
|
||||||
"idiom" : "universal",
|
|
||||||
"color" : {
|
|
||||||
"color-space" : "srgb",
|
|
||||||
"components" : {
|
|
||||||
"red" : "0x8A",
|
|
||||||
"alpha" : "1.000",
|
|
||||||
"blue" : "0xF7",
|
|
||||||
"green" : "0x28"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -54,7 +54,7 @@ private extension RefreshAttemptsViewController
|
|||||||
if attempt.isSuccess
|
if attempt.isSuccess
|
||||||
{
|
{
|
||||||
cell.successLabel.text = NSLocalizedString("Success", comment: "")
|
cell.successLabel.text = NSLocalizedString("Success", comment: "")
|
||||||
cell.successLabel.textColor = .altGreen
|
cell.successLabel.textColor = .refreshGreen
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user