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:
@@ -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 },
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user