initial commit, you are welcome odette

This commit is contained in:
gnat
2024-09-06 16:55:55 -07:00
commit af9d9e3451
37 changed files with 2858 additions and 0 deletions

29
utils/PopupWindow.js Normal file
View File

@ -0,0 +1,29 @@
export default ({
name,
child,
transition = "slide_up",
transitionDuration = 250,
...props
}) => {
const reveal = Variable(false)
const window = Widget.Window({
name,
visible: false,
...props,
child: Widget.Box({
css: `min-height: 2px;
min-width: 2px;`,
child: Widget.Revealer({
transition,
transitionDuration,
hexpand: true,
vexpand: true,
child: child,
revealChild: reveal.bind()
}),
}),
});
return window, reveal;
}