summaryrefslogtreecommitdiff
path: root/cmd/list.ha
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2025-03-22 18:47:17 +0100
committerJulian Hurst <ark@mansus.space>2025-03-22 18:47:36 +0100
commitd531bc786a3da309d10f3bdf62ebebda345e5205 (patch)
tree115784b094359369be2dea779cf9b34787477101 /cmd/list.ha
parent4c3c071e7b8f34d3b77a0232ef907350a992a49e (diff)
downloadhare-tui-d531bc786a3da309d10f3bdf62ebebda345e5205.tar.gz
Remove list.ha and refactor scrolllist
Diffstat (limited to 'cmd/list.ha')
-rw-r--r--cmd/list.ha10
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);