This commit is contained in:
2025-02-14 21:49:30 +01:00
parent 4cda202873
commit 8998afd9d6
2 changed files with 64 additions and 44 deletions

View File

@@ -31,20 +31,33 @@ pub fn main() !void {
.separator = .{ .enabled = false },
},
.layout = .{
.gap = 1,
.gap = 0,
.padding = .all(5),
.direction = .horizontal,
},
});
try container.append(try App.Container.init(allocator, .{
var box = try App.Container.init(allocator, .{
.rectangle = .{ .fill = .blue },
.layout = .{
.gap = 1,
.direction = .vertical,
.padding = .vertical(1),
.sizing = .{
.width = .{ .fixed = 70 },
.height = .{ .fixed = 18 },
// .width = .{ .fixed = 700 },
// .height = .{ .fixed = 180 },
},
},
});
try box.append(try App.Container.init(allocator, .{
.rectangle = .{ .fill = .light_green },
}));
try box.append(try App.Container.init(allocator, .{
.rectangle = .{ .fill = .light_green },
}));
try box.append(try App.Container.init(allocator, .{
.rectangle = .{ .fill = .light_green },
}));
try container.append(box);
try container.append(try App.Container.init(allocator, .{
.border = .{ .color = .light_blue, .corners = .squared },
}));