diff options
| author | Julian Hurst <ark@mansus.space> | 2025-03-22 18:48:02 +0100 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2025-03-22 18:48:02 +0100 |
| commit | 8973f23fabbc6abaa6b53461fe94f3381495d82e (patch) | |
| tree | d4b9a32d0d130908d9be8c4a6fd1392cee5266fa /cmd/list.ha | |
| parent | 2e9e4018d0808bdfe8f6d6545c8b9928dddd796a (diff) | |
| parent | d531bc786a3da309d10f3bdf62ebebda345e5205 (diff) | |
| download | hare-tui-8973f23fabbc6abaa6b53461fe94f3381495d82e.tar.gz | |
Merge branch 'master' into nomem
Diffstat (limited to 'cmd/list.ha')
| -rw-r--r-- | cmd/list.ha | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cmd/list.ha b/cmd/list.ha index 348083e..eacd69c 100644 --- a/cmd/list.ha +++ b/cmd/list.ha @@ -10,10 +10,12 @@ use time; export fn main() void = { const state = tui::init()!; defer tui::finish(&state); - let li = list::newlist(&state, (1, 1), void, &widget::style { - border = true, - colorfg = widget::color::REDFG, - colorbg = widget::color::REDBG, + let li = list::newlist(&state, (1, 1), void, &list::style { + style = &widget::style { + border = true, + }, + normal = widget::color::REDFG, + marked = widget::color::BLUEBG, },"hello", "world", "bye", "world")!; let l = layout::newvlayout(&li); |
