From 25ffe234ac0d2220250ef129de742a2b0dfec709 Mon Sep 17 00:00:00 2001 From: FrHun <28605587+frhun@users.noreply.github.com> Date: Tue, 5 Jul 2022 00:27:27 +0200 Subject: [PATCH] PixelPaint: Tweak FilterGallery layout This brings the spacing in line with the rest of the system, and removes unneeded margins that only bloated the layout and caused edges to be misaligned. --- .../Applications/PixelPaint/FilterGallery.gml | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Userland/Applications/PixelPaint/FilterGallery.gml b/Userland/Applications/PixelPaint/FilterGallery.gml index 63bacae90c..9fffaaca6e 100644 --- a/Userland/Applications/PixelPaint/FilterGallery.gml +++ b/Userland/Applications/PixelPaint/FilterGallery.gml @@ -1,11 +1,12 @@ @GUI::Frame { - layout: @GUI::VerticalBoxLayout {} + layout: @GUI::VerticalBoxLayout { + margins: [4] + spacing: 6 + } fill_with_background_color: true @GUI::Widget { - layout: @GUI::HorizontalBoxLayout { - margins: [4] - } + layout: @GUI::HorizontalBoxLayout {} @GUI::TreeView { name: "tree_view" @@ -13,9 +14,7 @@ } @GUI::Widget { - layout: @GUI::VerticalBoxLayout { - margins: [4] - } + layout: @GUI::VerticalBoxLayout {} @GUI::Widget { name: "config_widget" @@ -24,6 +23,8 @@ } } + @GUI::Layout::Spacer {} + @GUI::GroupBox { title: "Preview" layout: @GUI::VerticalBoxLayout { @@ -38,12 +39,12 @@ } @GUI::Widget { - max_height: 24 layout: @GUI::HorizontalBoxLayout { - margins: [4] + spacing: 6 } + preferred_height: "fit" - @GUI::Widget {} + @GUI::Layout::Spacer {} @GUI::DialogButton { name: "apply_button"