From d531bc786a3da309d10f3bdf62ebebda345e5205 Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Sat, 22 Mar 2025 18:47:17 +0100 Subject: Remove list.ha and refactor scrolllist --- cmd/list.ha | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cmd/list.ha') 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); -- cgit v1.2.3