add(container/rectangle): add content creation

This commit is contained in:
2025-02-07 17:43:16 +01:00
parent 11531e9d4a
commit d326deac97
4 changed files with 14 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ pub fn main() !void {
.border = .{
.color = .blue,
.sides = .{
.top = false,
.left = false,
.bottom = false,
},
.corners = .rounded,
@@ -37,6 +37,7 @@ pub fn main() !void {
});
try container.append(try App.Container.init(allocator, .{
.border = .{ .color = .light_blue, .corners = .squared },
.rectangle = .{ .fill = .blue },
}));
try container.append(try App.Container.init(allocator, .{
.border = .{ .color = .light_blue, .corners = .squared },