diff --git a/WordPress-iOS-Shared/Core/WPStyleGuide.h b/WordPress-iOS-Shared/Core/WPStyleGuide.h index 7fecba0..1684774 100644 --- a/WordPress-iOS-Shared/Core/WPStyleGuide.h +++ b/WordPress-iOS-Shared/Core/WPStyleGuide.h @@ -69,8 +69,8 @@ + (void)configureTableViewActionCell:(UITableViewCell *)cell; + (void)configureTableViewDestructiveActionCell:(UITableViewCell *)cell; + (void)configureTableViewTextCell:(WPTextFieldTableViewCell *)cell; -+ (void)configureTableViewSectionHeader:(UITableViewHeaderFooterView *)header; -+ (void)configureTableViewSectionFooter:(UITableViewHeaderFooterView *)footer; ++ (void)configureTableViewSectionHeader:(UIView *)header; ++ (void)configureTableViewSectionFooter:(UIView *)footer; // Move to a feature category + (UIColor *)buttonActionColor; diff --git a/WordPress-iOS-Shared/Core/WPStyleGuide.m b/WordPress-iOS-Shared/Core/WPStyleGuide.m index 43d3cb1..3a23d19 100644 --- a/WordPress-iOS-Shared/Core/WPStyleGuide.m +++ b/WordPress-iOS-Shared/Core/WPStyleGuide.m @@ -415,12 +415,18 @@ + (void)configureTableViewTextCell:(WPTextFieldTableViewCell *)cell + (void)configureTableViewSectionHeader:(UITableViewHeaderFooterView *)header { + if (![header isKindOfClass:[UITableViewHeaderFooterView class]]) { + return; + } header.textLabel.font = [self tableviewSectionHeaderFont]; header.textLabel.textColor = [self whisperGrey]; } + (void)configureTableViewSectionFooter:(UITableViewHeaderFooterView *)footer { + if (![footer isKindOfClass:[UITableViewHeaderFooterView class]]) { + return; + } footer.textLabel.font = [self subtitleFont]; footer.textLabel.textColor = [self greyDarken10]; }