Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit ec7aa06

Browse files
authored
consistent menu styles (#2580)
1 parent 8aab7ef commit ec7aa06

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

Classes/Labels/LabelMenuCell.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ final class LabelMenuCell: SelectableCell {
1717
override init(frame: CGRect) {
1818
super.init(frame: frame)
1919

20+
overlayColor = Styles.Colors.Gray.medium.color
2021
backgroundColor = nil
2122
contentView.backgroundColor = nil
2223

Classes/Milestones/MilestoneCell.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ final class MilestoneCell2: SelectableCell {
1818
override init(frame: CGRect) {
1919
super.init(frame: frame)
2020

21+
overlayColor = Styles.Colors.Gray.medium.color
2122
backgroundColor = nil
2223
contentView.backgroundColor = nil
2324

Classes/Notifications/Filter/InboxFilterRepoCell.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ final class InboxFilterRepoCell: SelectableCell {
1616
override init(frame: CGRect) {
1717
super.init(frame: frame)
1818

19+
overlayColor = Styles.Colors.Gray.medium.color
1920
accessibilityIdentifier = "inbox-filter-repo-cell"
2021

2122
label.adjustsFontSizeToFitWidth = true
@@ -28,7 +29,8 @@ final class InboxFilterRepoCell: SelectableCell {
2829
make.right.lessThanOrEqualTo(-Styles.Sizes.gutter)
2930
}
3031

31-
addBorder(.bottom, left: Styles.Sizes.gutter)
32+
let border = contentView.addBorder(.bottom, left: Styles.Sizes.gutter, right: -Styles.Sizes.gutter)
33+
border.backgroundColor = Styles.Colors.Gray.medium.color
3234
}
3335

3436
required init?(coder aDecoder: NSCoder) {

Classes/People/PeopleCell.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ final class PeopleCell: SelectableCell {
1919
override init(frame: CGRect) {
2020
super.init(frame: frame)
2121

22+
overlayColor = Styles.Colors.Gray.medium.color
2223
backgroundColor = nil
2324
contentView.backgroundColor = nil
2425

Classes/Views/SelectableCell.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ class SelectableCell: UICollectionViewCell {
4141
return self.contentView.addOverlay()
4242
}()
4343

44+
var overlayColor: UIColor? {
45+
get { return overlay.backgroundColor }
46+
set { overlay.backgroundColor = newValue }
47+
}
48+
4449
override init(frame: CGRect) {
4550
super.init(frame: frame)
4651
accessibilityTraits |= UIAccessibilityTraitButton

0 commit comments

Comments
 (0)