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.
This commit is contained in:
FrHun 2022-07-05 00:27:27 +02:00 committed by Andreas Kling
commit 25ffe234ac
Notes: sideshowbarker 2024-07-17 08:54:52 +09:00

View file

@ -1,11 +1,12 @@
@GUI::Frame { @GUI::Frame {
layout: @GUI::VerticalBoxLayout {} layout: @GUI::VerticalBoxLayout {
margins: [4]
spacing: 6
}
fill_with_background_color: true fill_with_background_color: true
@GUI::Widget { @GUI::Widget {
layout: @GUI::HorizontalBoxLayout { layout: @GUI::HorizontalBoxLayout {}
margins: [4]
}
@GUI::TreeView { @GUI::TreeView {
name: "tree_view" name: "tree_view"
@ -13,9 +14,7 @@
} }
@GUI::Widget { @GUI::Widget {
layout: @GUI::VerticalBoxLayout { layout: @GUI::VerticalBoxLayout {}
margins: [4]
}
@GUI::Widget { @GUI::Widget {
name: "config_widget" name: "config_widget"
@ -24,6 +23,8 @@
} }
} }
@GUI::Layout::Spacer {}
@GUI::GroupBox { @GUI::GroupBox {
title: "Preview" title: "Preview"
layout: @GUI::VerticalBoxLayout { layout: @GUI::VerticalBoxLayout {
@ -38,12 +39,12 @@
} }
@GUI::Widget { @GUI::Widget {
max_height: 24
layout: @GUI::HorizontalBoxLayout { layout: @GUI::HorizontalBoxLayout {
margins: [4] spacing: 6
} }
preferred_height: "fit"
@GUI::Widget {} @GUI::Layout::Spacer {}
@GUI::DialogButton { @GUI::DialogButton {
name: "apply_button" name: "apply_button"