-
Notifications
You must be signed in to change notification settings - Fork 11
Expose view controller background colors for styling by host apps #18
Conversation
|
@jleandroperez would you please review? this one is ready |
jleandroperez
left a comment
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.
@mindgraffiti Looks great!! Can we please please move the change to the shared base class?. THANK YOU!!!
| /// | ||
| @objc func styleBackground() { | ||
| view.backgroundColor = WordPressAuthenticator.shared.style.viewControllerBackgroundColor | ||
| } |
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.
Can we move this snippet to the base class?
| view.backgroundColor = WordPressAuthenticator.shared.style.viewControllerBackgroundColor | ||
| } | ||
|
|
||
|
|
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.
Same here!
| @objc func styleBackground() { | ||
| view.backgroundColor = WordPressAuthenticator.shared.style.viewControllerBackgroundColor | ||
| } | ||
|
|
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.
Aaaand same here!
| private func styleBackground() { | ||
| view.backgroundColor = WordPressAuthenticator.shared.style.viewControllerBackgroundColor | ||
| } | ||
|
|
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.
Aaaand same here!
| /// | ||
| private func styleBackground() { | ||
| view.backgroundColor = WordPressAuthenticator.shared.style.viewControllerBackgroundColor | ||
| } |
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.
Aaaand same here!
| @objc func styleBackground() { | ||
| view.backgroundColor = WordPressAuthenticator.shared.style.viewControllerBackgroundColor | ||
| } | ||
|
|
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.
Aaaand same here!
| @objc func styleBackground() { | ||
| view.backgroundColor = WordPressAuthenticator.shared.style.viewControllerBackgroundColor | ||
| } | ||
|
|
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.
Aaaand same here!
|
ready for another look. thank you @jleandroperez +1 |
jleandroperez
left a comment
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 @mindgraffiti !!!
![]()
|
thank you Jorge! |
Fixes #12.
Every view controller in the authentication flow is set to
WPStyleGuide.lightGreyin InterfaceBuilder. Need to remove the manual background color assignment, expose the view controller background color property, and set it in both host apps.To test please see: woocommerce/woocommerce-ios#195