Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes problem with iOS 5.1 not showing finished/error - icons, closes #…

  • Loading branch information...
commit 50c4645039fbc614d8833bfaebef96d7b0927999 1 parent ba05606
@myell0w authored
Showing with 14 additions and 3 deletions.
  1. +14 −3 MTStatusBarOverlay.m
View
17 MTStatusBarOverlay.m
@@ -125,7 +125,7 @@
///////////////////////////////////////////////////////
// Text that is displayed in the finished-Label when the finish was successful
-#define kFinishedText @""
+#define kFinishedText @""
#define kFinishedFontSize 22.f
// Text that is displayed when an error occured
@@ -390,7 +390,8 @@ - (id)initWithFrame:(CGRect)frame {
finishedLabel_.hidden = YES;
finishedLabel_.text = kFinishedText;
finishedLabel_.textAlignment = UITextAlignmentCenter;
- finishedLabel_.font = [UIFont boldSystemFontOfSize:kFinishedFontSize];
+ finishedLabel_.font = [UIFont fontWithName:@"HelveticaNeue-Bold" size:kFinishedFontSize];
+ finishedLabel_.adjustsFontSizeToFitWidth = YES;
[self addSubviewToBackgroundView:finishedLabel_];
// Status Label 1 is first visible
@@ -1201,6 +1202,11 @@ - (void)setColorSchemeForStatusBarStyle:(UIStatusBarStyle)style messageType:(MTM
}
self.activityIndicator.activityIndicatorViewStyle = kLightThemeActivityIndicatorViewStyle;
+
+ if ([self.activityIndicator respondsToSelector:@selector(setColor:)]) {
+ [self.activityIndicator setColor:kLightThemeTextColor];
+ }
+
self.detailView.backgroundColor = kLightThemeDetailViewBackgroundColor;
self.detailView.layer.borderColor = [kLightThemeDetailViewBorderColor CGColor];
self.historyTableView.separatorColor = kLightThemeDetailViewBorderColor;
@@ -1232,6 +1238,11 @@ - (void)setColorSchemeForStatusBarStyle:(UIStatusBarStyle)style messageType:(MTM
self.finishedLabel.shadowColor = nil;
self.activityIndicator.activityIndicatorViewStyle = kDarkThemeActivityIndicatorViewStyle;
+
+ if ([self.activityIndicator respondsToSelector:@selector(setColor:)]) {
+ [self.activityIndicator setColor:nil];
+ }
+
self.detailView.backgroundColor = kDarkThemeDetailViewBackgroundColor;
self.detailView.layer.borderColor = [kDarkThemeDetailViewBorderColor CGColor];
self.historyTableView.separatorColor = kDarkThemeDetailViewBorderColor;
@@ -1268,7 +1279,7 @@ - (void)updateUIForMessageType:(MTMessageType)messageType duration:(NSTimeInterv
[self.activityIndicator stopAnimating];
// update font and text
- self.finishedLabel.font = [UIFont boldSystemFontOfSize:kFinishedFontSize];
+ self.finishedLabel.font = [UIFont fontWithName:@"HelveticaNeue-Bold" size:kFinishedFontSize];
self.finishedLabel.text = kFinishedText;
self.progress = 1.0;
break;
Please sign in to comment.
Something went wrong with that request. Please try again.