summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-11-20 00:38:17 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-20 12:56:35 +0100
commita8c95097b5a11df3c310cb56f46407b5ad5a347b (patch)
treecbafa5ca4f552637ffb12e1e714f5a3eaf736633 /Userland/Applications
parent5bd3d0cf256dd12bca747b501856ffee0fffae52 (diff)
downloadserenity-a8c95097b5a11df3c310cb56f46407b5ad5a347b.zip
FontEditor: Convert UI from fixed to implicit height
This gets rid of a magic number, and means that the widget will adapt nicely when the system font changes.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/FontEditor/FontEditorWindow.gml10
1 files changed, 9 insertions, 1 deletions
diff --git a/Userland/Applications/FontEditor/FontEditorWindow.gml b/Userland/Applications/FontEditor/FontEditorWindow.gml
index 6a201e292b..dad4c4c5a0 100644
--- a/Userland/Applications/FontEditor/FontEditorWindow.gml
+++ b/Userland/Applications/FontEditor/FontEditorWindow.gml
@@ -1,5 +1,6 @@
@GUI::Widget {
fill_with_background_color: true
+
layout: @GUI::VerticalBoxLayout {
spacing: 2
}
@@ -18,21 +19,24 @@
@GUI::Widget {
name: "left_column_container"
+
layout: @GUI::VerticalBoxLayout {
}
@GUI::Widget {
name: "glyph_editor_container"
+
layout: @GUI::VerticalBoxLayout {
}
}
@GUI::Widget {
- fixed_height: 22
layout: @GUI::VerticalBoxLayout {
}
@GUI::Widget {
+ shrink_to_fit: true
+
layout: @GUI::HorizontalBoxLayout {
}
@@ -60,12 +64,14 @@
@GUI::Widget {
name: "right_column_container"
+
layout: @GUI::VerticalBoxLayout {
spacing: 6
}
@GUI::Widget {
name: "glyph_map_container"
+
layout: @GUI::VerticalBoxLayout {
}
}
@@ -74,6 +80,7 @@
name: "font_metadata_groupbox"
title: "Metadata"
fixed_height: 220
+
layout: @GUI::VerticalBoxLayout {
margins: [6, 6, 6, 6]
}
@@ -198,6 +205,7 @@
@GUI::Widget {
fixed_height: 22
+
layout: @GUI::HorizontalBoxLayout {
}