2025-02-11 15:47:56 +10:00
|
|
|
const WINDOW_NAME = "fullscreen";
|
|
|
|
|
|
|
|
|
|
const Fullscreen = (children) => Widget.Box({
|
|
|
|
|
vertical: true,
|
2025-02-24 13:19:36 +10:00
|
|
|
css: "background-image: url('~/downloads/wallpaper/kill-my-firstborn/astronaut-pink-blue.png');",
|
|
|
|
|
//+ "background-size: cover;"
|
|
|
|
|
//+ "background-position: center;"
|
|
|
|
|
//+ "background-repeat: no-repeat;",
|
2025-02-11 15:47:56 +10:00
|
|
|
children: children,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export const fullscreen = Widget.Window({
|
|
|
|
|
name: WINDOW_NAME,
|
|
|
|
|
setup: self => self.keybind("Escape", () => {
|
|
|
|
|
App.closeWindow(WINDOW_NAME)
|
|
|
|
|
}),
|
|
|
|
|
anchor: ["top", "bottom", "left", "right"],
|
|
|
|
|
visible: false,
|
|
|
|
|
keymode: "exclusive",
|
|
|
|
|
child: Fullscreen(
|
|
|
|
|
Widget.Label({"Hello World"});
|
|
|
|
|
)
|
|
|
|
|
})
|