From 3d5ff3dbdc4e12f98c06e30fc83da47a045dc459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20G=C3=B6llnitz?= Date: Tue, 16 Sep 2025 00:26:21 +0200 Subject: [PATCH] contacts-box: adjust search bar's margin inside toolbar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A toolbar view, per its docs, expects its toolbar children to either be of a set of known widget types that are supported by default, or otherwise be a Gtk.Box-like container with the .toolbar CSS style class. This expectation was not met, but instead similar, but not identical margins manually applied. These similar yet different margins made it look off. While this now adheres to the toolbar child requirements of libadwaita, and the margins look more familiar, it still breaks with libadwaita's assumption that toolbars are not stacked. Its stylesheet allows for stacking toolbar views only if one is providing the top and the other the bottom one. This view, especially, deserves a more thorough design overhaul, regardless of this. Thus, I will leave it at this. Link: https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.ToolbarView.html Signed-off-by: Markus Göllnitz Part-of: --- src/ui/contacts-box.ui | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/ui/contacts-box.ui b/src/ui/contacts-box.ui index ff2dd1b..8467a1a 100644 --- a/src/ui/contacts-box.ui +++ b/src/ui/contacts-box.ui @@ -4,13 +4,21 @@ - + + + vertical - - 12 - 12 - 12 - 12 + + 588 + 388 + + + 6 + 6 + +