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

24
ui/message.slint Normal file
View File

@@ -0,0 +1,24 @@
export component Message inherits Rectangle {
in property <string> sender;
in property <string> time;
in property <string> text;
VerticalLayout {
padding-top: 12px;
Text {
text: sender + " " + time;
x: 12px;
font-size: 12px;
}
Text {
text: text;
x: 24px;
font-size: 16px;
wrap: word-wrap;
}
}
}