Experiments with slint
This commit is contained in:
24
ui/message.slint
Normal file
24
ui/message.slint
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user