Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transparency not working in 0.23.7 #6046

Closed
Nemra1 opened this issue Jul 21, 2017 · 18 comments
Closed

transparency not working in 0.23.7 #6046

Nemra1 opened this issue Jul 21, 2017 · 18 comments
Labels

Comments

@Nemra1
Copy link

Nemra1 commented Jul 21, 2017

im start in node webkit since version 0.23.5 and i cant get transparency working in my app
my json content:

{
"name": "beta-app",
"version": "1.2",
"description": "",
"main": "main.html",
"page-cache": true,

"chromium-args" : "--enable-transparent-visuals --disable-gpu --disable-devtools --child-clean-exit --enable-file-cookies",

"window": {
"width": 880,
"height": 620,
"icon": "icon.png",
"toolbar": false,
"position": "center",
"title": "beta",
"resizable": true,
"frame": true

}
}
im trying every way to get this working but never get that

@jtg-gg
Copy link
Member

jtg-gg commented Jul 22, 2017

@Nemra1 have you try the latest build ? http://dl.nwjs.io/v0.23.7/
may I know what platform are you using ? and the version ?

and from your window manifest
resizable should be false
frame should be false

also please read the doc
http://docs.nwjs.io/en/latest/For%20Users/Advanced/Transparent%20Window/

@Nemra1
Copy link
Author

Nemra1 commented Jul 22, 2017

im using 0.23.7 in windows 8.1 64x and also ido every thing right but no luck

@jtg-gg
Copy link
Member

jtg-gg commented Jul 24, 2017

I've just tested it on Win 8.1 pro, using nwjs 23.7 x64 version using this
transparency-5989.zip

I can get the transparency works

@aprilandjan
Copy link

aprilandjan commented Jul 24, 2017

@jtg-gg ~~~I tried the config and html files provided above on a win7 32x machine, with nw v23.6, the window created transparently but no html content rendered, then I open the window devtools, no js error occured, I can still operate the dom & js in devltools. Then I change to use nw v22.3 to run again, the transparent window was created with correct html content rendered.~~~

I downloaded nw v23.7, the html with transparent window is rendered correctly. But I'm sorry that there's still same problem described in #5989 😢

@jtg-gg
Copy link
Member

jtg-gg commented Jul 24, 2017

@aprilandjan which issue ? black screen after waking up pc from lock ?

@aprilandjan
Copy link

@jtg-gg yes

@jtg-gg
Copy link
Member

jtg-gg commented Jul 25, 2017

@aprilandjan I can't reproduce on my win 7 virtual machine
does this happen with win 10 ?
what gpu are you using for the win 7 ?
does this happen with other win 7 machine ?

@Nemra1
Copy link
Author

Nemra1 commented Jul 28, 2017

@jtg-gg im its same thing but not work

@Nemra1
Copy link
Author

Nemra1 commented Jul 28, 2017

the problem her when im add "transparent": true, and run my dos command C:\nw0267\nw.exe C:\app
the nwjs.exe not showing any more and running in background like this screen
2017-07-29_002616

to back to work i need to"transparent": false and, must kill nwjs.exe manual and run dos command again

@jtg-gg
Copy link
Member

jtg-gg commented Jul 31, 2017

@Nemra1 can you try to use my sample app https://github.com/nwjs/nw.js/files/1168696/transparency-5989.zip ?
and also can you run with this extra param "--enable-logging"

@aprilandjan
Copy link

@jtg-gg Sorry to reply late! I tested on a win7(i7-6700, AMD Radeon R5 340X) with nw v0.23.7-sdk-ia32, I can still reproduce in following steps:

  1. minimize nw window;
  2. lock windows, click switch user, choose the previous logged user and back to windows;
  3. restore your nw window
  4. the transparent background in nw window became black.

And I found that in the same win7 machine if I did not switch user after lock windows, there's no problem; I also tested the same program on a win10 machine, it works very well.

Hope this help!

@jtg-gg
Copy link
Member

jtg-gg commented Aug 11, 2017

thx @aprilandjan, I can reproduce the bug,
but fixing it might take some time, my dev env is win10

@jtg-gg
Copy link
Member

jtg-gg commented Aug 11, 2017

@aprilandjan I found a work around, if your run the transparency with "--disable-gpu-compositing" and "--force-cpu-draw" it works,

do you really need gpu compositing ?
if you don't want click through, you can "cheat" by setting the alpha value to 1, it look like total transparent

@sksar
Copy link

sksar commented Aug 27, 2017

set frame:false and transparent: true
It should do the trick

@jtg-gg
Copy link
Member

jtg-gg commented Oct 2, 2017

@aprilandjan I've made a fix for the issue, actually the black background also happens if you change theme to basic, then back to aero glass
@rogerwang I've made a pull request nwjs/chromium.src#96
please also patch nw26

@rogerwang
Copy link
Member

This is fixed in git and will be available in the next nightly build.

@aprilandjan
Copy link

@jtg-gg Thanks! I'll give it a try once it became available!

@rogerwang
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants