wich version i need to use of deno webview2 modules?
I want to use webview2 bindings with deno, and
I found three different versions, option 2 seemed to me the most ideal but I had to look for other bindings because of the long start time, wrong ipc binding etc., option 1 doesn't have the features I want (like fullscren borderless window). Also, how do I reflect the always on top feature to webvew, when I do, it makes the cmd screen always on top
https://github.com/webview/webview_deno
https://github.com/zephraph/webview
https://github.com/azulamb/deno_windows_webview2/tree/main
5 Replies
Are you targeting a specific os ? if you are you can use option 1 then you can use native apis for example in linux get the gtk window pointer from the webview, dlopen gtk and use normal gtk apis on it like set full screen and set decorated
I'm thinking of targeting windows as a priority, linux operations are simpler
This is an example for linux https://jsr.io/@sigmasd/adw-app/0.1.3/lib.ts (its used like this
app.run((window) => {
const webview = new Webview(false, undefined, window);
)
windows can be done similarly if you're familiar with its win32 api, you'll need to use CreateWindowEx and pass the window to webview, but i'm not familiar with windows so I can't comment more on thatthanks
Another option is to use webui, it have https://jsr.io/@webui/deno-webui/doc/~/WebUI.prototype.setKiosk to set fullscreen