-
Notifications
You must be signed in to change notification settings - Fork 11
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
Expose view controller background colors for styling by host apps #18
Conversation
@jleandroperez would you please review? this one is ready |
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 |
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.lightGrey
in 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