mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-05-15 07:07:18 +08:00
CB-6783 - added StatusBarStyle config preference, updated docs (closes #9)
Signed-off-by: Shazron Abdullah <shazron@apache.org>
This commit is contained in:
parent
4cfee575a1
commit
55575f5409
@ -37,6 +37,10 @@ Preferences
|
||||
|
||||
<preference name="StatusBarBackgroundColor" value="#000000" />
|
||||
|
||||
- __StatusBarStyle__ (status bar style, defaults to lightcontent). On iOS 7, set the status bar style. Available options default, lightcontent, blacktranslucent, blackopaque.
|
||||
|
||||
<preference name="StatusBarStyle" value="lightcontent" />
|
||||
|
||||
Hiding at startup
|
||||
-----------
|
||||
|
||||
@ -257,4 +261,3 @@ Supported Platforms
|
||||
- Windows Phone 8
|
||||
|
||||
|
||||
|
@ -55,6 +55,7 @@
|
||||
</feature>
|
||||
<preference name="StatusBarOverlaysWebView" value="true" />
|
||||
<preference name="StatusBarBackgroundColor" value="#000000" />
|
||||
<preference name="StatusBarStyle" value="lightcontent" />
|
||||
</config-file>
|
||||
|
||||
<header-file src="src/ios/CDVStatusBar.h" />
|
||||
|
@ -102,7 +102,6 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
|
||||
|
||||
[self initializeStatusBarBackgroundView];
|
||||
|
||||
[self styleLightContent:nil]; // match default backgroundColor of #000000
|
||||
self.viewController.view.autoresizesSubviews = YES;
|
||||
|
||||
NSString* setting;
|
||||
@ -116,6 +115,11 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
|
||||
if ([self settingForKey:setting]) {
|
||||
[self _backgroundColorByHexString:[self settingForKey:setting]];
|
||||
}
|
||||
|
||||
setting = @"StatusBarStyle";
|
||||
if ([self settingForKey:setting]) {
|
||||
[self setStatusBarStyle:[self settingForKey:setting]];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) _ready:(CDVInvokedUrlCommand*)command
|
||||
|
Loading…
x
Reference in New Issue
Block a user