Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweak the activity indicator color threshold.

  • Loading branch information...
commit 624a249977f61a585f4619eabbc75ecfd3205076 1 parent ce0ed0e
@devinross authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/TapkuLibrary/TKWebViewController.m
View
2  src/TapkuLibrary/TKWebViewController.m
@@ -79,7 +79,7 @@ - (void) webViewDidStartLoad:(UIWebView *)webView{
UIColor *clr = self.navigationController.navigationBar.barTintColor;
const CGFloat *componentColors = CGColorGetComponents(clr.CGColor);
CGFloat colorBrightness = ((componentColors[0] * 299) + (componentColors[1] * 587) + (componentColors[2] * 114)) / 1000;
- style = colorBrightness < 0.5 ? UIActivityIndicatorViewStyleWhite : UIActivityIndicatorViewStyleGray ;
+ style = colorBrightness < 0.6 ? UIActivityIndicatorViewStyleWhite : UIActivityIndicatorViewStyleGray ;
}else{
style = UIActivityIndicatorViewStyleGray;
}
Please sign in to comment.
Something went wrong with that request. Please try again.