summaryrefslogtreecommitdiff
path: root/cmd/list_strictsz.ha
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2025-03-22 18:48:02 +0100
committerJulian Hurst <ark@mansus.space>2025-03-22 18:48:02 +0100
commit8973f23fabbc6abaa6b53461fe94f3381495d82e (patch)
treed4b9a32d0d130908d9be8c4a6fd1392cee5266fa /cmd/list_strictsz.ha
parent2e9e4018d0808bdfe8f6d6545c8b9928dddd796a (diff)
parentd531bc786a3da309d10f3bdf62ebebda345e5205 (diff)
downloadhare-tui-8973f23fabbc6abaa6b53461fe94f3381495d82e.tar.gz
Merge branch 'master' into nomem
Diffstat (limited to 'cmd/list_strictsz.ha')
-rw-r--r--cmd/list_strictsz.ha14
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);
};