cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kronenberg (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-12214) backgroundColor property in Config.xml not supported on OSX
Date Mon, 24 Apr 2017 12:13:04 GMT

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


was (Author: k3erg):
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.

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-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message