-
Notifications
You must be signed in to change notification settings - Fork 3.9k
#132 support for screen Transparency on WIN/OSX/Linux #2463
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
Conversation
|
Nice! It works! |
|
Great !!! Thanks, excited to give a try the build, Do you have any On Wed, Oct 15, 2014 at 8:58 AM, jtg-gg [email protected] wrote:
|
|
MERGE MERGE MERGE <3 |
|
Great work! |
|
Works Great !!! Thanks @jtg-gg |
|
Does it work on Linux? |
|
@jtg-gg is there any build of nw-v0.10.5 ? |
|
This is awesome! |
|
@dncnmcdougall yes it works, at least on my Ubuntu virtual machine @sapjax lets wait for @rogerwang to merge and made a new build ;) |
|
I assume this doesn't allow click events through to stuff behind / below the app? |
|
@jtg-gg Sweet work! Can we get a v0.10.5 build? |
|
Yes, based on my tests it doesn't allow click events through, unless I'm doing something wrong... |
|
Congrats! I am glad to hear that you added transparency support to |
|
@adam-lynch |
|
Does anyone know if this also fixes the rounded corners on frameless windows? 😉 |
|
It doesn't fix it but you can use this to make rounded corners — On Sun, Oct 26, 2014 at 12:33 PM, Tom Moor [email protected]
|
|
@tommoor Well, you cannot set a border-radius to body, but you can make the app transparent, then set a wrapper div and give it border-radius <div class="wrapper">
<!-- content here! -->
</div>html, body {
margin: 0;
padding: 0;
height: 100vh;
}
.wrapper {
box-sizing: border-box;
height: 100vh;
overflow: auto;
border-radius: 1em;
background: rgba(255,255,255,.8);
border: 1px solid #333;
} |
|
It would be nice to get a real fix for that issue as having half the corners square and half rounded is clearly a bug. I vote we keep it open until that's fixed On Sun, Oct 26, 2014 at 10:20 AM, Mauricio [email protected]
|
|
click through events, for transparent pixel not supported yet |
|
+1 for merge this PR please! |
|
@jtg-gg can you fetch the original repo and fix the conflicts? I need to use notifications and with your v0.10.2 release doesn't works. |
|
@sergiovilar Roger has merged NW11 into master, thats why now the pull request has conflict |
|
i wonder if it's possible to get a blurred transparent background using this ? |
|
@Manak: micha 2014-11-05 16:27 GMT+01:00 Manak [email protected]:
|
|
+1. Thought this was in 0.11.0 😦. Any ETA? |
|
+1 |
|
@jtg-gg native_window_gtk.cc is not used anymore -- it's switched to aura (native_window_aura) in nw 0.11. Please fix that. And please add a command line switch to turn this completely off to rule out side effects if we'd get some bug report. The switch should also turn off the modifications you've done in the chromium & blink repo. |
|
@rogerwang I've removed my changes for gtk, and add global variable g_support_transparency to disable my changes. this can be activated by "--disable_transparency" |
#132 support for screen Transparency on WIN/OSX/Linux
|
@jtg-gg and @rogerwang: Thank you !!!! Transparency + Chrome 38 is a dream come true. Thank you, Jonathan Dodd |
|
please try the live build here: http://dl.node-webkit.org/live-build/11-22-2014/0b2dabc-d8e3707-49872e2-f2f89e2-70e314f-cdd879e/ |
|
I am unable to resize a frameless window that has transparency enabled. |
|
@jakehh what's your OS version? |
|
Windows 8.1 (Pro) 64bit |
|
@jakehh can you give us the sample code ? I can't resize frameless window even if it is not transparent @notsospecial1 it is not yet implemented, I'm still investigating. on Windows, I think we will need to disable GPU compositor if we want the click through feature. while on OSX is it possible ? I'm still searching for sample code that, if any one have it, please share it with me |
|
@jakehh @rogerwang I've fixed the window resize problem, here is my pull request https://github.com/rogerwang/chromium.src/pull/28 @notsospecial1 you can try running node-webkit with "--disable-gpu" but it only works on frameless window |
|
Thank you. I can verify that the "click-through" feature of transparency works on my Windows 7 (32-bit) system. ( Frameless window, with "chromium-args" : "--disable-gpu" in the manifest). Great stuff !!! Thanks again, |
|
I've found a bug in Linux 32 bit. I tried jakehh's code above. When I open index.html in my browser |
|
Hey, transparency doesn't seem to work on xubuntu 14.04, 64 bit version. I run: My nw is 0.11.2 My code is the floowing:
|
|
@edi9999 what window manager you are using ? |
|
@jtg-gg I'm using lightdm |
|
@edi9999 lightdm is a display manager. WMs such as |
|
Ok, right, my window manager is xfwm4, the one that comes with xubuntu by default |
|
on linux, you'll need window manager with compositing capability @edi9999 can you enable the compositing on xfwm4 and inform us if the transparency is working ? |
|
@jtg-gg with window-compositing enabled, my example seems to work on xfwm4. For other xfwm4 users, to enable it, just go to the "window manager tweaks" application, then under compositor tab, check "enable display compositing" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rogerwang I'm investigating it now
|
@jtg-gg I found if I comment out the 'if' statement block above, there is no negative impacts. Is it correct? |
|
@rogerwang but this will cause flicker on frameless window as described by #2784 (regardless transparency enabled/disabled) |
|
@rogerwang I've made a pull request #2859 |
will also need following pull requests:
nwjs/blink#7
https://github.com/rogerwang/chromium.src/pull/27
I've added SetTransparent function in javascript's window class
you can also set it in package.json file, add "transparent": true inside "window"
OSX screenshot (Transparent window with frame) :

WIN8 screenshot (Transparent window without frame, with toolbar) :
