summaryrefslogtreecommitdiff
path: root/Userland/Applications/ThemeEditor
diff options
context:
space:
mode:
authorFrHun <28605587+frhun@users.noreply.github.com>2022-05-26 15:34:32 +0200
committerAndreas Kling <kling@serenityos.org>2022-06-30 11:51:25 +0200
commitc2d344bd8c3a665a957c77fe3c1741d8bfe875ec (patch)
tree4767978b76bfb974ed5dc18b5c5f6e1bafcd84ac /Userland/Applications/ThemeEditor
parent93112458b8e3628de01185239fd95ee90cc6278b (diff)
downloadserenity-c2d344bd8c3a665a957c77fe3c1741d8bfe875ec.zip
ThemeEditor: Fix layout for new layout system
Diffstat (limited to 'Userland/Applications/ThemeEditor')
-rw-r--r--Userland/Applications/ThemeEditor/AlignmentProperty.gml2
-rw-r--r--Userland/Applications/ThemeEditor/ColorProperty.gml2
-rw-r--r--Userland/Applications/ThemeEditor/FlagProperty.gml2
-rw-r--r--Userland/Applications/ThemeEditor/MainWidget.cpp2
-rw-r--r--Userland/Applications/ThemeEditor/MetricProperty.gml2
-rw-r--r--Userland/Applications/ThemeEditor/PathProperty.gml2
6 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Applications/ThemeEditor/AlignmentProperty.gml b/Userland/Applications/ThemeEditor/AlignmentProperty.gml
index e0a62ee7e6..235bb90a26 100644
--- a/Userland/Applications/ThemeEditor/AlignmentProperty.gml
+++ b/Userland/Applications/ThemeEditor/AlignmentProperty.gml
@@ -2,7 +2,7 @@
layout: @GUI::HorizontalBoxLayout {
spacing: 4
}
- shrink_to_fit: true
+ preferred_height: "fit"
@GUI::Label {
name: "name"
diff --git a/Userland/Applications/ThemeEditor/ColorProperty.gml b/Userland/Applications/ThemeEditor/ColorProperty.gml
index 77504033a0..975317bc18 100644
--- a/Userland/Applications/ThemeEditor/ColorProperty.gml
+++ b/Userland/Applications/ThemeEditor/ColorProperty.gml
@@ -2,7 +2,7 @@
layout: @GUI::HorizontalBoxLayout {
spacing: 4
}
- shrink_to_fit: true
+ preferred_height: "fit"
@GUI::Label {
name: "name"
diff --git a/Userland/Applications/ThemeEditor/FlagProperty.gml b/Userland/Applications/ThemeEditor/FlagProperty.gml
index e5e4cb66cb..ab71d41dfe 100644
--- a/Userland/Applications/ThemeEditor/FlagProperty.gml
+++ b/Userland/Applications/ThemeEditor/FlagProperty.gml
@@ -2,7 +2,7 @@
layout: @GUI::HorizontalBoxLayout {
spacing: 4
}
- shrink_to_fit: true
+ preferred_height: "fit"
@GUI::CheckBox {
name: "checkbox"
diff --git a/Userland/Applications/ThemeEditor/MainWidget.cpp b/Userland/Applications/ThemeEditor/MainWidget.cpp
index 034e3bc16b..9583d8c2fe 100644
--- a/Userland/Applications/ThemeEditor/MainWidget.cpp
+++ b/Userland/Applications/ThemeEditor/MainWidget.cpp
@@ -468,7 +468,7 @@ void MainWidget::add_property_tab(PropertyTab const& property_tab)
group_box->layout()->set_spacing(12);
// 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->set_shrink_to_fit(true);
+ group_box->set_preferred_height(GUI::SpecialDimension::Fit);
for (auto const& property : group.properties) {
NonnullRefPtr<GUI::Widget> row_widget = group_box->add<GUI::Widget>();
diff --git a/Userland/Applications/ThemeEditor/MetricProperty.gml b/Userland/Applications/ThemeEditor/MetricProperty.gml
index b49896bcff..11c8e2c8a6 100644
--- a/Userland/Applications/ThemeEditor/MetricProperty.gml
+++ b/Userland/Applications/ThemeEditor/MetricProperty.gml
@@ -2,7 +2,7 @@
layout: @GUI::HorizontalBoxLayout {
spacing: 4
}
- shrink_to_fit: true
+ preferred_height: "fit"
@GUI::Label {
name: "name"
diff --git a/Userland/Applications/ThemeEditor/PathProperty.gml b/Userland/Applications/ThemeEditor/PathProperty.gml
index d42d0cb863..4d5d0e3f56 100644
--- a/Userland/Applications/ThemeEditor/PathProperty.gml
+++ b/Userland/Applications/ThemeEditor/PathProperty.gml
@@ -2,7 +2,7 @@
layout: @GUI::HorizontalBoxLayout {
spacing: 4
}
- shrink_to_fit: true
+ preferred_height: "fit"
@GUI::Label {
name: "name"