started implementing dtsod parsing

This commit is contained in:
2023-05-22 04:06:55 +06:00
parent 03f9f889cc
commit 4e2376f251
21 changed files with 724 additions and 63 deletions

31
view/example.tui.dtsod Normal file
View File

@@ -0,0 +1,31 @@
TUI_version: 1;
namespace: "example_namespace"
$ui: {
name: "UIElement",
type: "UIElement",
min_width: 4,
max_width: 4,
width_scaling: 0,
height_scaling: 0,
bg_color: "black",
fg_color: "white",
border: {
top: "hidden",
bottom: "no",
left: "thick",
right: "double",
fg_color: "dark_cyan",
bg_color: "gray";
};
};
$ui: [
name: "Grid",
type: "Grid",
content: [
// column
[ "@UIElement" ], // row
[ "@namespace.element1" ], // row
];
];

10
view/main.tui.dtsod Normal file
View File

@@ -0,0 +1,10 @@
TUI_version: 1;
namespace: "main";
grid: [
name: "Grid",
type: "Grid",
// column
[ "@namespace.element0" ], // row
[ "@namespace.element1" ], // row
];