diff options
| author | Julian Hurst <julian.hurst@digdash.com> | 2025-03-12 15:07:24 +0100 |
|---|---|---|
| committer | Julian Hurst <julian.hurst@digdash.com> | 2025-03-12 15:07:24 +0100 |
| commit | a8d7b95b05d586f3b65fbf9757fab39c8098aee9 (patch) | |
| tree | bd34e7539f2068f49a13c6c742b47f2db6c13b3e /cmd/list_strictsz.ha | |
| parent | 48c5f4a17840b8418cb64f6e1667da86d804ba02 (diff) | |
| download | hare-tui-a8d7b95b05d586f3b65fbf9757fab39c8098aee9.tar.gz | |
Support styling
Diffstat (limited to 'cmd/list_strictsz.ha')
| -rw-r--r-- | cmd/list_strictsz.ha | 10 |
1 files changed, 7 insertions, 3 deletions
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); }; |
