aboutsummaryrefslogtreecommitdiff
path: root/src/sysapp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysapp')
-rw-r--r--src/sysapp/login/main.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sysapp/login/main.lua b/src/sysapp/login/main.lua
index c3788a2..0303c4f 100644
--- a/src/sysapp/login/main.lua
+++ b/src/sysapp/login/main.lua
@@ -40,9 +40,20 @@ local img3 = tk.box({
hresize = true,
}, tk.image(f))
wm:add(img3, "Window 3", 300, 150)
+
local txt = tk.text({color = tk.rgb(0, 255, 0), width=200}, "Hello, world!\nThis is a long text")
wm:add(txt, "Text example", 32, 32)
+local grid = tk.grid({border_size = 1}, {
+ { tk.box({hresize = true, width = 200, constrain_size = true, min_width = 16, control_size = 8}, tk.text("Name")),
+ tk.box({hresize = true, width = 100, constrain_size = true, min_width = 16, control_size = 8}, tk.text("Size")) },
+ { tk.text("File A"), tk.text("10k") },
+ { tk.text("File B"), tk.text("20k") },
+ { tk.text("File C"), tk.text("15k") },
+ })
+wm:add(tk.box({vresize = true, hresize = true, vscroll = true, hscroll = true}, grid),
+ "Grid example", 300, 20)
+
mainloop.run()