@@ -48,10 +48,10 @@ - (instancetype)init {
4848
4949 // Button
5050 _button = [UIButton buttonWithType: UIButtonTypeCustom];
51- _button.titleLabel .font = [WPStyleGuide regularTextFont ];
51+ _button.titleLabel .font = [WPStyleGuide subtitleFontBold ];
5252 _button.hidden = YES ;
5353 [_button addTarget: self action: @selector (buttonAction: ) forControlEvents: UIControlEventTouchUpInside];
54- [_button setTitleColor: [WPStyleGuide allTAllShadeGrey ] forState: UIControlStateNormal];
54+ [_button setTitleColor: [WPStyleGuide wordPressBlue ] forState: UIControlStateNormal];
5555 [_button setBackgroundImage: [self newButtonBackgroundImage ] forState: UIControlStateNormal];
5656
5757 // Insert Subviews
@@ -73,7 +73,7 @@ - (void)didMoveToSuperview {
7373
7474- (void )layoutSubviews {
7575
76- CGFloat width = 250 .0f ;
76+ CGFloat width = 280 .0f ;
7777
7878 [self hideAccessoryViewIfNecessary ];
7979
@@ -131,8 +131,9 @@ - (UIImage *)newButtonBackgroundImage {
131131 UIGraphicsBeginImageContextWithOptions (fillRect.size , NO , [[UIScreen mainScreen ] scale ]);
132132 CGContextRef context = UIGraphicsGetCurrentContext ();
133133
134- CGContextSetStrokeColorWithColor (context, [WPStyleGuide allTAllShadeGrey ].CGColor );
135- CGContextAddPath (context, [UIBezierPath bezierPathWithRoundedRect: CGRectInset (fillRect, 1 , 1 ) cornerRadius: 2.0 ].CGPath );
134+ CGContextSetStrokeColorWithColor (context, [WPStyleGuide wordPressBlue ].CGColor );
135+ CGContextAddPath (context, [UIBezierPath bezierPathWithRoundedRect: CGRectInset (fillRect, 1 , 1 )
136+ cornerRadius: 2.0 ].CGPath );
136137 CGContextStrokePath (context);
137138
138139 UIImage *mainImage = UIGraphicsGetImageFromCurrentImageContext ();
@@ -219,8 +220,12 @@ - (void)centerInSuperview {
219220
220221 if ([self .superview isKindOfClass: [UITableView class ]]) {
221222 UITableView *tableView = (UITableView *)self.superview ;
222- CGFloat headerHeight = (tableView.tableHeaderView == nil || tableView.tableHeaderView .hidden ) ? 0 : tableView.tableHeaderView .bounds .size .height ;
223- CGFloat footerHeight = (tableView.tableFooterView == nil || tableView.tableFooterView .hidden ) ? 0 : tableView.tableFooterView .bounds .size .height ;
223+ CGFloat headerHeight = (tableView.tableHeaderView == nil
224+ || tableView.tableHeaderView .hidden
225+ || tableView.tableHeaderView .alpha == 0.0 ) ? 0 : tableView.tableHeaderView .bounds .size .height ;
226+ CGFloat footerHeight = (tableView.tableFooterView == nil
227+ || tableView.tableFooterView .hidden
228+ || tableView.tableFooterView .alpha == 0.0 ) ? 0 : tableView.tableFooterView .bounds .size .height ;
224229
225230 verticalOffset += (headerHeight + footerHeight);
226231
0 commit comments