mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-12 02:30:30 +09:00
ThemeEditor: Fix layout for new layout system
This commit is contained in:
parent
93112458b8
commit
c2d344bd8c
Notes:
sideshowbarker
2024-07-17 09:51:20 +09:00
Author: https://github.com/frhun
Commit: c2d344bd8c
Pull-request: https://github.com/SerenityOS/serenity/pull/14418
6 changed files with 6 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
||||||
layout: @GUI::HorizontalBoxLayout {
|
layout: @GUI::HorizontalBoxLayout {
|
||||||
spacing: 4
|
spacing: 4
|
||||||
}
|
}
|
||||||
shrink_to_fit: true
|
preferred_height: "fit"
|
||||||
|
|
||||||
@GUI::Label {
|
@GUI::Label {
|
||||||
name: "name"
|
name: "name"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
layout: @GUI::HorizontalBoxLayout {
|
layout: @GUI::HorizontalBoxLayout {
|
||||||
spacing: 4
|
spacing: 4
|
||||||
}
|
}
|
||||||
shrink_to_fit: true
|
preferred_height: "fit"
|
||||||
|
|
||||||
@GUI::Label {
|
@GUI::Label {
|
||||||
name: "name"
|
name: "name"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
layout: @GUI::HorizontalBoxLayout {
|
layout: @GUI::HorizontalBoxLayout {
|
||||||
spacing: 4
|
spacing: 4
|
||||||
}
|
}
|
||||||
shrink_to_fit: true
|
preferred_height: "fit"
|
||||||
|
|
||||||
@GUI::CheckBox {
|
@GUI::CheckBox {
|
||||||
name: "checkbox"
|
name: "checkbox"
|
||||||
|
|
|
@ -468,7 +468,7 @@ void MainWidget::add_property_tab(PropertyTab const& property_tab)
|
||||||
group_box->layout()->set_spacing(12);
|
group_box->layout()->set_spacing(12);
|
||||||
// 1px less on the left makes the text line up with the group title.
|
// 1px less on the left makes the text line up with the group title.
|
||||||
group_box->layout()->set_margins({ 8, 8, 8, 7 });
|
group_box->layout()->set_margins({ 8, 8, 8, 7 });
|
||||||
group_box->set_shrink_to_fit(true);
|
group_box->set_preferred_height(GUI::SpecialDimension::Fit);
|
||||||
|
|
||||||
for (auto const& property : group.properties) {
|
for (auto const& property : group.properties) {
|
||||||
NonnullRefPtr<GUI::Widget> row_widget = group_box->add<GUI::Widget>();
|
NonnullRefPtr<GUI::Widget> row_widget = group_box->add<GUI::Widget>();
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
layout: @GUI::HorizontalBoxLayout {
|
layout: @GUI::HorizontalBoxLayout {
|
||||||
spacing: 4
|
spacing: 4
|
||||||
}
|
}
|
||||||
shrink_to_fit: true
|
preferred_height: "fit"
|
||||||
|
|
||||||
@GUI::Label {
|
@GUI::Label {
|
||||||
name: "name"
|
name: "name"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
layout: @GUI::HorizontalBoxLayout {
|
layout: @GUI::HorizontalBoxLayout {
|
||||||
spacing: 4
|
spacing: 4
|
||||||
}
|
}
|
||||||
shrink_to_fit: true
|
preferred_height: "fit"
|
||||||
|
|
||||||
@GUI::Label {
|
@GUI::Label {
|
||||||
name: "name"
|
name: "name"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue