mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-26 22:58:06 +08:00
standardize bg color, split bg color consistent
This commit is contained in:
@@ -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
|
||||
}()
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -68,7 +68,7 @@ struct Styles {
|
||||
|
||||
struct Colors {
|
||||
|
||||
static let background = "ffffff"
|
||||
static let background = UIColor.groupTableViewBackground
|
||||
static let purple = "6f42c1"
|
||||
|
||||
struct Red {
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>589</string>
|
||||
<string>594</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSApplicationQueriesSchemes</key>
|
||||
|
||||
Reference in New Issue
Block a user