Experiments with slint

This commit is contained in:
Margret Riegert
2026-02-22 23:23:49 -05:00
parent e71ddcb726
commit f7af29eb75
4 changed files with 72 additions and 18 deletions

16
ui/chat-view.slint Normal file
View File

@@ -0,0 +1,16 @@
import { Button, VerticalBox, ScrollView } from "std-widgets.slint";
import { Message } from "message.slint";
export component ChatView inherits ScrollView {
in property <[{text: string, sender: string, time: string}]> messages;
VerticalLayout {
spacing: 5px;
for message in root.messages: Message {
text: message.text;
sender: message.sender;
time: message.time;
}
}
}