myputer specific changes
This commit is contained in:
parent
1d4189b040
commit
a448ce3f39
216 changed files with 544 additions and 24478 deletions
23
homes/modules/ags/widgets/fullscreen.js
Executable file
23
homes/modules/ags/widgets/fullscreen.js
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
const WINDOW_NAME = "fullscreen";
|
||||
|
||||
const Fullscreen = (children) => Widget.Box({
|
||||
vertical: true,
|
||||
css: "background-image: url('https://images2.alphacoders.com/135/1351579.png');"
|
||||
+ "background-size: cover;"
|
||||
+ "background-position: center;"
|
||||
+ "background-repeat: no-repeat;",
|
||||
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"});
|
||||
)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue