-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Posts and Pages search: Update to Muriel color scheme #12124
Posts and Pages search: Update to Muriel color scheme #12124
Conversation
WordPress/Classes/ViewRelated/Pages/PageListSectionHeaderView.swift
Outdated
Show resolved
Hide resolved
WordPress/Classes/ViewRelated/Pages/PageListSectionHeaderView.swift
Outdated
Show resolved
Hide resolved
WordPress/Classes/ViewRelated/Pages/PageListSectionHeaderView.swift
Outdated
Show resolved
Hide resolved
WordPress/Classes/ViewRelated/Activity/ActivityListSectionHeaderView.swift
Outdated
Show resolved
Hide resolved
WordPress/Classes/ViewRelated/Activity/ActivityListSectionHeaderView.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this! Changes look good to me, just two small comments in the code :)
updateBackgroundColor() | ||
} | ||
|
||
// Update controller's background color to avoid white lines |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add just a little more clarification to this comment? Where was the white line and why was it appearing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed! Let me know what you think.
@@ -83,6 +86,12 @@ class PostCompactCell: UITableViewCell, ConfigurablePostView { | |||
contentView.backgroundColor = innerView.backgroundColor | |||
} | |||
|
|||
private func setupSeparator() { | |||
WPStyleGuide.applyBorderStyle(separator) | |||
contentView.heightAnchor.constraint(equalToConstant: contentView.frame.height + WPStyleGuide.separatorHeight).isActive = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this should be necessary, if you ensure the InnerView is pinned to the top of the content view, and the bottom of the InnerView is pinned to the top of the separator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code was adding the separator height to the cell height and realign the labels (to maintain the same margins as before the hardcoded separator). But yeah, complex and not so clear.
I removed it and managed to achieve the same result with a heigh constant in the xib.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
This PR fixes the color and some design details in posts and pages search.
To test: