Add more to the template
This commit is contained in:
parent
ac36fda566
commit
ae7ed99a83
|
@ -71,8 +71,76 @@ template MainWindow : Adw.ApplicationWindow {
|
||||||
ScrolledWindow {
|
ScrolledWindow {
|
||||||
vexpand: true;
|
vexpand: true;
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
child: Label {
|
child: Box {
|
||||||
label: "Placeholder";
|
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 {
|
Adw.EntryRow entry {
|
||||||
title: _("Enter a Message…");
|
title: _("Enter a Message…");
|
||||||
input-purpose: free_form;
|
input-purpose: free_form;
|
||||||
|
input-hints: spellcheck;
|
||||||
enable-emoji-completion: true;
|
enable-emoji-completion: true;
|
||||||
show-apply-button: true;
|
show-apply-button: true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue