diff options
Diffstat (limited to 'cmd/list_strictsz.ha')
| -rw-r--r-- | cmd/list_strictsz.ha | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/cmd/list_strictsz.ha b/cmd/list_strictsz.ha index e0a371d..2396e3c 100644 --- a/cmd/list_strictsz.ha +++ b/cmd/list_strictsz.ha @@ -4,7 +4,6 @@ use tui::widget; use tui::widget::list; use unix::tty; use io; -use fmt; use time; export fn main() void = { @@ -13,11 +12,14 @@ export fn main() void = { let li = list::newlist(&state, (1, 1), tty::ttysize { rows = 3, columns = 4, - }, &widget::style { - border = true, - colorfg = widget::color::BLUEFG, - colorbg = widget::color::BLUEBG, - }, "hello", "world", "bye", "world")!; + }, &list::style { + style = &widget::style { + border = true, + }, + normal = widget::color::DEFAULTFG, + marked = widget::color::DEFAULTBG, + }, + "hel🎉", "world", "bye", "world")!; let l = layout::newvlayout(&li); l.layout.print(&l); }; |
