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.ha | |
| parent | 48c5f4a17840b8418cb64f6e1667da86d804ba02 (diff) | |
| download | hare-tui-a8d7b95b05d586f3b65fbf9757fab39c8098aee9.tar.gz | |
Support styling
Diffstat (limited to 'cmd/list.ha')
| -rw-r--r-- | cmd/list.ha | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/list.ha b/cmd/list.ha index 8729dd9..0148adb 100644 --- a/cmd/list.ha +++ b/cmd/list.ha @@ -10,7 +10,11 @@ use time; export fn main() void = { const out = tui::init()!; defer io::close(out)!; - let li = list::newlist(out, (1, 1), widget::nosize, "hello", "world")!; + let li = list::newlist(out, (1, 1), void, &widget::style { + border = true, + colorfg = widget::color::REDFG, + colorbg = widget::color::REDBG, + },"hello", "world", "bye", "world")!; let l = layout::newvlayout(&li); l.layout.print(&l); }; |
