Add more to the template
This commit is contained in:
parent
ac36fda566
commit
ae7ed99a83
|
@ -71,8 +71,76 @@ template MainWindow : Adw.ApplicationWindow {
|
|||
ScrolledWindow {
|
||||
vexpand: true;
|
||||
hexpand: true;
|
||||
child: Label {
|
||||
label: "Placeholder";
|
||||
child: Box {
|
||||
hexpand: true;
|
||||
vexpand: true;
|
||||
orientation: vertical;
|
||||
spacing: 7;
|
||||
|
||||
ListBox {
|
||||
hexpand: true;
|
||||
selection-mode: single;
|
||||
show-separators: false;
|
||||
activate-on-single-click: true;
|
||||
|
||||
ListBoxRow {
|
||||
activatable: false;
|
||||
selectable: true;
|
||||
hexpand: true;
|
||||
child: Box {
|
||||
hexpand: true;
|
||||
orientation: horizontal;
|
||||
spacing: 8;
|
||||
valign: start;
|
||||
halign: start;
|
||||
margin-top: 12;
|
||||
margin-bottom: 12;
|
||||
margin-start: 12;
|
||||
margin-end: 12;
|
||||
|
||||
Adw.Avatar {
|
||||
text: "User A";
|
||||
show-initials: true;
|
||||
size: 24;
|
||||
}
|
||||
|
||||
Label {
|
||||
label: "Left";
|
||||
ellipsize: end;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
ListBoxRow {
|
||||
activatable: false;
|
||||
selectable: true;
|
||||
hexpand: true;
|
||||
child: Box {
|
||||
hexpand: true;
|
||||
orientation: horizontal;
|
||||
spacing: 12;
|
||||
valign: start;
|
||||
halign: end;
|
||||
margin-top: 12;
|
||||
margin-bottom: 12;
|
||||
margin-start: 12;
|
||||
margin-end: 12;
|
||||
|
||||
|
||||
Label {
|
||||
label: "Right";
|
||||
ellipsize: end;
|
||||
}
|
||||
|
||||
|
||||
Adw.Avatar {
|
||||
text: "User B";
|
||||
show-initials: true;
|
||||
size: 24;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -88,6 +156,7 @@ template MainWindow : Adw.ApplicationWindow {
|
|||
Adw.EntryRow entry {
|
||||
title: _("Enter a Message…");
|
||||
input-purpose: free_form;
|
||||
input-hints: spellcheck;
|
||||
enable-emoji-completion: true;
|
||||
show-apply-button: true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue