From ae7ed99a834a37505bdf2fd443bf413b8a55b040 Mon Sep 17 00:00:00 2001 From: MTRNord Date: Sat, 15 Oct 2022 22:34:33 +0200 Subject: [PATCH] Add more to the template --- resources/window.blp | 73 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 71 insertions(+), 2 deletions(-) diff --git a/resources/window.blp b/resources/window.blp index 1d1a68a..2227219 100644 --- a/resources/window.blp +++ b/resources/window.blp @@ -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; }