nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

Hi , can we add custom shadow to window (main window not the html body) , in both cases if window is set transparent or not ?

Open RaoHammas opened this issue 9 years ago • 4 comments

RaoHammas avatar Jan 04 '17 08:01 RaoHammas

Have you tried to put your index.html with CSS opacity: and then package.json transparent?

shamun avatar Jan 04 '17 08:01 shamun

of-course i tried and it makes the window transparent ! but what i want is "the box shadow around the main ui window " . is it possible ? i searched a lot and i think this issue is about 4 years old and still no solution !

RaoHammas avatar Jan 04 '17 08:01 RaoHammas

Make the index.html design in a drop shadow. (because the window is transparent, you have to decorate your index.html as perspective view, please try that and let us know if it resolves it or not)

shamun avatar Jan 04 '17 08:01 shamun

capture

I achieved this by using some tricks...mainly the transparent option and "chromium-args":"--disable-gpu --force-cpu-draw" . but as you can see in pic the click through window doesn't work on Shadow .

Please notice that the actual body is transparent .the shadow is box-shadow of a DIV with .6 opacity.

RaoHammas avatar Jan 04 '17 08:01 RaoHammas