mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Roll back the timeline background color change. Remove the white accent view.
This commit is contained in:
@@ -23,12 +23,6 @@ class MasterTimelineTableViewCell: VibrantTableViewCell {
|
||||
return NonIntrinsicImageView(image: AppAssets.timelineStarImage)
|
||||
}()
|
||||
|
||||
private let separatorAccent: UIView = {
|
||||
let view = UIView()
|
||||
view.backgroundColor = UIColor.white
|
||||
return view
|
||||
}()
|
||||
|
||||
var cellData: MasterTimelineCellData! {
|
||||
didSet {
|
||||
updateSubviews()
|
||||
@@ -89,13 +83,6 @@ class MasterTimelineTableViewCell: VibrantTableViewCell {
|
||||
dateView.setFrameIfNotEqual(layout.dateRect)
|
||||
|
||||
separatorInset = layout.separatorInsets
|
||||
|
||||
if traitCollection.userInterfaceStyle == .light {
|
||||
let separatorAccentRect = CGRect(x: safeAreaInsets.left, y: frame.height - 2, width: frame.width - safeAreaInsets.right - safeAreaInsets.left, height: 1)
|
||||
separatorAccent.setFrameIfNotEqual(separatorAccentRect)
|
||||
} else {
|
||||
separatorAccent.setFrameIfNotEqual(.zero)
|
||||
}
|
||||
}
|
||||
|
||||
func setAvatarImage(_ image: UIImage) {
|
||||
@@ -151,8 +138,6 @@ private extension MasterTimelineTableViewCell {
|
||||
addSubviewAtInit(feedNameView, hidden: true)
|
||||
addSubviewAtInit(avatarView, hidden: true)
|
||||
addSubviewAtInit(starView, hidden: true)
|
||||
addSubviewAtInit(separatorAccent, hidden: false)
|
||||
|
||||
}
|
||||
|
||||
func updatedLayout(width: CGFloat) -> MasterTimelineCellLayout {
|
||||
|
||||
Reference in New Issue
Block a user