You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2014/03/13 20:58:37 UTC

[08/35] git commit: Match statusbar style to default background color of #000000

Match statusbar style to default background color of #000000



Project: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/commit/ec5fa951
Tree: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/tree/ec5fa951
Diff: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/diff/ec5fa951

Branch: refs/heads/master
Commit: ec5fa951df0c92c43a2d4c75c547ccc8f6216e94
Parents: 4ddd824
Author: Shazron Abdullah <sh...@apache.org>
Authored: Mon Oct 7 16:30:16 2013 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Mon Oct 7 16:30:16 2013 -0700

----------------------------------------------------------------------
 src/ios/CDVStatusBar.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-statusbar/blob/ec5fa951/src/ios/CDVStatusBar.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m
index bccb012..51efc3d 100644
--- a/src/ios/CDVStatusBar.m
+++ b/src/ios/CDVStatusBar.m
@@ -48,6 +48,7 @@
     
     _statusBarBackgroundView = [[UIView alloc] initWithFrame:frame];
     _statusBarBackgroundView.backgroundColor = [UIColor blackColor];
+    [self styleLightContent:nil]; // match default backgroundColor of #000000
     
     NSString* setting;
     
@@ -87,7 +88,6 @@
         bounds.size.height -= statusBarFrame.size.height;
         
         self.webView.frame = bounds;
-        [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque];
         [self.webView.superview addSubview:_statusBarBackgroundView];
     }