dpogue commented on code in PR #1661:
URL: https://github.com/apache/cordova-ios/pull/1661#discussion_r3346662533


##########
CordovaLib/Classes/Private/Plugins/CDVStatusBarInternal/CDVStatusBarInternal.m:
##########
@@ -37,8 +37,9 @@ - (void)setBackgroundColor:(CDVInvokedUrlCommand *)command
     NSInteger valueR = [[command argumentAtIndex:0 withDefault:@0] 
integerValue];
     NSInteger valueG = [[command argumentAtIndex:1 withDefault:@0] 
integerValue];
     NSInteger valueB = [[command argumentAtIndex:2 withDefault:@0] 
integerValue];
+    NSInteger valueA = [[command argumentAtIndex:3 withDefault:@255] 
integerValue];

Review Comment:
   The alpha is at index 3 when returned from `getComputedStyle` in RGBA 
syntax, but it is not an integer, it's a float so this does need changing...
   
   ```js
   document.body.style.background = '#ff000080';
   getComputedStyle(document.body).backgroundColor
   //=> 'rgba(255, 0, 0, 0.5)'
   ```



-- 
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.

To unsubscribe, e-mail: [email protected]

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