From a8d7b95b05d586f3b65fbf9757fab39c8098aee9 Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Wed, 12 Mar 2025 15:07:24 +0100 Subject: Support styling --- cmd/list_strictsz.ha | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'cmd/list_strictsz.ha') diff --git a/cmd/list_strictsz.ha b/cmd/list_strictsz.ha index 1a7ea1c..13c2808 100644 --- a/cmd/list_strictsz.ha +++ b/cmd/list_strictsz.ha @@ -11,9 +11,13 @@ export fn main() void = { const out = tui::init()!; defer io::close(out)!; let li = list::newlist(out, (1, 1), tty::ttysize { - rows = 2, - columns = 2, - }, "hello", "world")!; + rows = 3, + columns = 4, + }, &widget::style { + border = true, + colorfg = widget::color::BLUEFG, + colorbg = widget::color::BLUEBG, + }, "hello", "world", "bye", "world")!; let l = layout::newvlayout(&li); l.layout.print(&l); }; -- cgit v1.2.3