mtlehtin commented on issue #301:
URL: 
https://github.com/apache/cordova-plugin-inappbrowser/issues/301#issuecomment-643084593


   Hi, sorry not for answering for these. I've not been involved in the project 
anymore.
   
   But as for the background-color these are the code changes that i made in 
our internal fork:
   
   CDVInAppBrowserOptions.h: Expose the options:
   ```
   @property (nonatomic, assign) BOOL statusbarlightcontent;
   @property (nonatomic, copy) NSString* backgroundcolor;
   ```
   
   CDVWKInAppBrowser.m:
   ```
   - (void)createViews
   {
     // ...
   
     // Set background color if user sets it in options
     if (_browserOptions.backgroundcolor != nil) {
       self.view.backgroundColor = [self 
colorFromHexString:_browserOptions.backgroundcolor];
     } else {
       self.view.backgroundColor = [UIColor whiteColor];
     }
   
     [self.view addSubview:self.toolbar];
     [self.view addSubview:self.addressLabel];
     [self.view addSubview:self.spinner];
   }
   
   - (UIStatusBarStyle)preferredStatusBarStyle
   {
       return _browserOptions.statusbarlightcontent ? 
UIStatusBarStyleLightContent : UIStatusBarStyleDefault;
   }
   ```
   
   Usage in the app:
   ```
   window.cordova.InAppBrowser.open(url, target, 
'backgroundcolor=#000000,statusbarlightcontent=yes|no')
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to