standardize bg color, split bg color consistent

This commit is contained in:
Ryan Nystrom
2017-07-09 11:02:08 -04:00
parent e8803d727c
commit 0853f8b0fb
7 changed files with 7 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ final class SettingsViewController: UIViewController, ListAdapterDataSource {
bottom: Styles.Sizes.tableSectionSpacing,
right: 0
)
view.backgroundColor = UIColor.groupTableViewBackground
view.backgroundColor = Styles.Colors.background
return view
}()

View File

@@ -28,6 +28,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// initialize a webview at the start so webview startup later on isn't so slow
let _ = UIWebView()
flexController.configureWindow(window)
window?.backgroundColor = Styles.Colors.background
rootNavigationManager.resetRootViewController(userSession: sessionManager.userSession)
return true
}

View File

@@ -27,7 +27,7 @@ final class Feed: NSObject, UIScrollViewDelegate {
lazy var collectionView: UICollectionView = {
let view = UICollectionView(frame: .zero, collectionViewLayout: UICollectionViewFlowLayout())
view.alwaysBounceVertical = true
view.backgroundColor = UIColor.groupTableViewBackground
view.backgroundColor = Styles.Colors.background
view.refreshControl = UIRefreshControl()
view.refreshControl?.addTarget(self, action: #selector(Feed.onRefresh(sender:)), for: .valueChanged)
return view

View File

@@ -25,6 +25,7 @@ final class RootNavigationManager: GithubSessionListener {
self.rootViewController = rootViewController
rootViewController.delegate = splitDelegate
rootViewController.preferredDisplayMode = .allVisible
rootViewController.view.backgroundColor = Styles.Colors.background
sessionManager.addListener(listener: self)
}

View File

@@ -16,7 +16,7 @@ final class EmptyView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
backgroundColor = UIColor.groupTableViewBackground
backgroundColor = Styles.Colors.background
label.backgroundColor = .clear
label.textAlignment = .center

View File

@@ -68,7 +68,7 @@ struct Styles {
struct Colors {
static let background = "ffffff"
static let background = UIColor.groupTableViewBackground
static let purple = "6f42c1"
struct Red {

View File

@@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>589</string>
<string>594</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>