From a5e5bc7edeb3dcc89b3c49196ce7ddc8d7bd1a82 Mon Sep 17 00:00:00 2001 From: Ryan Nystrom Date: Wed, 17 May 2017 13:28:07 -0400 Subject: [PATCH] color nits --- .../SegmentedControl/SegmentedControlCell.swift | 1 + Classes/Views/EmptyView.swift | 3 ++- Classes/Views/Styles.swift | 2 +- Resources/Base.lproj/Main.storyboard | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Classes/Section Controllers/SegmentedControl/SegmentedControlCell.swift b/Classes/Section Controllers/SegmentedControl/SegmentedControlCell.swift index b275e62d..e29be9c1 100644 --- a/Classes/Section Controllers/SegmentedControl/SegmentedControlCell.swift +++ b/Classes/Section Controllers/SegmentedControl/SegmentedControlCell.swift @@ -23,6 +23,7 @@ final class SegmentedControlCell: UICollectionViewCell { super.init(frame: frame) segmentedControl.addTarget(self, action: #selector(SegmentedControlCell.didSelect(sender:)), for: .valueChanged) + segmentedControl.tintColor = Styles.Colors.blue contentView.addSubview(segmentedControl) segmentedControl.snp.makeConstraints { make in make.left.equalTo(contentView).offset(Styles.Sizes.gutter) diff --git a/Classes/Views/EmptyView.swift b/Classes/Views/EmptyView.swift index 0611e1b8..1e5dc745 100644 --- a/Classes/Views/EmptyView.swift +++ b/Classes/Views/EmptyView.swift @@ -15,7 +15,8 @@ final class EmptyView: UIView { override init(frame: CGRect) { super.init(frame: frame) - translatesAutoresizingMaskIntoConstraints = false + + backgroundColor = Styles.Colors.Gray.lighter label.backgroundColor = Styles.Colors.Gray.lighter label.textAlignment = .center diff --git a/Classes/Views/Styles.swift b/Classes/Views/Styles.swift index c4f8792e..3bddb4a2 100644 --- a/Classes/Views/Styles.swift +++ b/Classes/Views/Styles.swift @@ -39,7 +39,7 @@ struct Styles { static let dark = UIColor.fromHex("24292e") static let medium = UIColor.fromHex("586069") static let light = UIColor.fromHex("a3aab1") - static let lighter = UIColor.fromHex("fafbfc") + static let lighter = UIColor.fromHex("f6f8fa") static let border = UIColor.fromHex("dfe2e5") } } diff --git a/Resources/Base.lproj/Main.storyboard b/Resources/Base.lproj/Main.storyboard index 34d1f759..13bd588d 100644 --- a/Resources/Base.lproj/Main.storyboard +++ b/Resources/Base.lproj/Main.storyboard @@ -24,4 +24,5 @@ +