-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug-window.tsx
More file actions
35 lines (31 loc) · 817 Bytes
/
Copy pathdebug-window.tsx
File metadata and controls
35 lines (31 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import app from "ags/gtk4/app"
import Gtk from "gi://Gtk?version=4.0"
function DebugWindow() {
console.log("Creating debug window...")
const window = (
<window
name="debug-window"
title="Debug Window"
visible={true}
defaultWidth={400}
defaultHeight={200}
>
<box orientation="vertical" spacing={10}>
<label label="DEBUG: Can you see this window?" />
<label label="If yes, layer shell issue" />
<label label="If no, fundamental AGS issue" />
<button onClicked={() => console.log("Button clicked!")}>
<label label="Test Button" />
</button>
</box>
</window>
)
console.log("Window created:", window)
return window
}
app.start({
main() {
console.log("App starting...")
DebugWindow()
},
})