ScalingSize, onBuild, toString

This commit is contained in:
2023-05-27 22:40:28 +06:00
parent b19c020235
commit d7f8e7303d
14 changed files with 345 additions and 115 deletions

View File

@@ -6,8 +6,8 @@ $ui: {
type: "TextBlock",
min_width: 4,
max_width: 4,
width_scaling: 0,
height_scaling: 0,
width: 20,
height: "3",
bg_color: "black",
fg_color: "white",
border: {
@@ -24,6 +24,11 @@ $ui: {
$ui: {
name: "Grid",
type: "Grid",
row_heights: [
"1*",
-1,
],
column_widths: [ "-8*" ],
content: [
# column
[ "example_textblock" ], # row

View File

@@ -1,12 +1,17 @@
parser_version: 1;
namespace: "main";
$ui: {
name: "main_grid",
type: "Grid",
content: [
# column
# [ "namespace.element0" ], # row
# [ "namespace.element1" ], # row
];
};
# $ui: {
# name: "main_grid",
# type: "Grid",
# row_heights: [
# "1*",
# # -1,
# # ],
# # column_widths: [ "-8*" ],
# content: [
# # column
# # [ "namespace.element0" ], # row
# # [ "namespace.element1" ], # row
# ];
# };