fix(header): render title in the aligned horizontal
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 32s

This commit is contained in:
2024-10-08 14:22:30 +02:00
parent fd77a99150
commit 7c6d2aa659
2 changed files with 20 additions and 7 deletions

View File

@@ -98,13 +98,14 @@ pub fn main() !void {
var root_window = vx.window();
root_window.clear();
// FIXME: this should not be necessary to clear the contents
try vx.render(tty.anyWriter()); // re-draw after clear!
header.draw(root_window.child(.{
.x_off = 0,
.y_off = 0,
.height = .{ .limit = 2 },
.border = .{ .where = .bottom },
.height = .{ .limit = 3 },
.border = .{ .where = .all },
}));
// Create a style