mod: fix rendering resizing; layout placement of child elements for vertical and horizontal directions

Work in progress for separator configuration of border properties
This commit is contained in:
2025-02-06 20:10:22 +01:00
parent 009d2129b6
commit 8586a05508
3 changed files with 131 additions and 43 deletions

View File

@@ -26,13 +26,22 @@ pub fn main() !void {
.border = .{
.color = .green,
.corners = .rounded,
.separator = .{ .enabled = true },
.separator = .{ .enabled = false },
},
.layout = .{ .gap = 40 },
.layout = .{ .gap = 10, .direction = .horizontal },
});
try container.append(try App.Container.init(allocator, .{
.border = .{ .color = .light_green, .corners = .squared },
}));
try container.append(try App.Container.init(allocator, .{
.border = .{ .color = .light_green, .corners = .squared },
}));
try container.append(try App.Container.init(allocator, .{
.border = .{ .color = .light_green, .corners = .squared },
}));
try container.append(try App.Container.init(allocator, .{
.border = .{ .color = .light_green, .corners = .squared },
}));
try container.append(try App.Container.init(allocator, .{
.border = .{ .color = .light_red, .corners = .squared },
}));