You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Mike Kronenberg (JIRA)" <ji...@apache.org> on 2017/04/24 12:08:04 UTC
[jira] [Commented] (CB-12214) backgroundColor property in
Config.xml not supported on OSX
[ https://issues.apache.org/jira/browse/CB-12214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15981060#comment-15981060 ]
Mike Kronenberg commented on CB-12214:
--------------------------------------
In MacOS, the window title bar inherits from the 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.
> 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-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org