[ 
https://issues.apache.org/jira/browse/CB-12214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15981060#comment-15981060
 ] 

Mike Kronenberg edited comment on CB-12214 at 4/24/17 12:12 PM:
----------------------------------------------------------------

In MacOS, the window title bar inherits from window.backgroundColor.

Deliberately setting it to black with
// use black background while starting.
self.window.backgroundColor = [NSColor blackColor];
will leave you with a dark gray window title bar.

Using
self.window.backgroundColor = NSColor.clearColor;
self.window.opaque = false;
or just completely leave "self.window.backgroundColor = [NSColor blackColor]" 
away will return a default colored window title bar, which should be the 
default behaviour imho.

If you think it should remain black by default, the backgroundColor property 
should be settable in Config.xml as requested by this report.


was (Author: k3erg):
In MacOS, the window title bar inherits from window.backgroundColor.

Deliberately setting it to black with
// use black background while starting.
self.window.backgroundColor = [NSColor blackColor];
will leave you with a dark gray window titlebar.

Using
self.window.backgroundColor = NSColor.clearColor;
self.window.opaque = false;
or just completely leave "self.window.backgroundColor = [NSColor blackColor]" 
away will return a default colored window title bar, which should be the 
default behaviour imho.

If you think it should remain black by default, the backgroundColor property 
should be settable in Config.xml as requested by this report.

> backgroundColor property in Config.xml not supported on OSX
> -----------------------------------------------------------
>
>                 Key: CB-12214
>                 URL: https://issues.apache.org/jira/browse/CB-12214
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: OSX
>            Reporter: Marek Trabalka
>              Labels: osx
>
> It seems to be quite easy to add the support. I've been able to make the 
> window background transparent by replacing line
>     self.window.backgroundColor = [NSColor blackColor];
> in CDVViewController.m file with these 2 lines
>     self.window.backgroundColor = NSColor.clearColor;
>     self.window.opaque = false;
> Would you please add this feature for OSX?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to