Skip to content
Jérémy Lal edited this page May 28, 2017 · 5 revisions

which version of webkitgtk is best to use with node-webkitgtk right now ?

webkitgtk often becomes stable enough only after a few patch releases, so here i keep notes about which versions can be run in a production environment.

  • 2.14.7
  • 2.16.3

display HTML5 widgets on your desktop (linux)

Since webkitgtk >= 2.7.4, transparent windows are possible, see this snapshot

Currently incomplete (there is no drag handlers, for example), it is still interesting to see how it's done using this code:

var W = require('webkitgtk')
W({offscreen:false})
.load('http://granze.github.io/flip-clock/components/flip-clock/demo.html', {
	transparent: true,
	decorated: false,
	style: 'html,body {background-color:transparent !important;opacity:0.8}',
	width: 600,
	height: 200
})
.wait('load').run(function() {
	var f = document.querySelector('flip-clock');
	document.body.innerHTML = "";
	document.body.appendChild(f);
})
.wait('unload')