feat(ags): add webkit proof of concept

This commit is contained in:
matt1432 2023-12-09 10:25:11 -05:00
parent 75842b6e11
commit c6cd289046
2 changed files with 29 additions and 1 deletions
devices/wim/config/ags/js

View file

@ -0,0 +1,25 @@
import { Widget, Box } from 'resource:///com/github/Aylur/ags/widget.js';
import WebKit2 from 'gi://WebKit2';
import PopupWindow from './misc/popup.js';
const WebView = Widget.subclass(WebKit2.WebView);
export default () => {
const view = WebView({
hexpand: true,
});
view.load_uri('https://search.nixos.org');
return PopupWindow({
name: 'browser',
visible: true,
focusable: true,
layer: 'top',
child: Box({
css: 'min-height: 600px; min-width: 800px;',
children: [view],
}),
});
};