summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Wizards
diff options
context:
space:
mode:
authorsin-ack <sin-ack@users.noreply.github.com>2021-08-17 00:10:51 +0000
committerAndreas Kling <kling@serenityos.org>2021-08-18 10:30:50 +0200
commit9c9a5c55cb34c63f3b6d3bf36dcbc6c37a429677 (patch)
tree368b982eb9ccf6ccf55aa3cdfe5ea32d613c5aa4 /Userland/Libraries/LibGUI/Wizards
parentc17f9adb1203501ae22f51188d02ed98b53128b7 (diff)
downloadserenity-9c9a5c55cb34c63f3b6d3bf36dcbc6c37a429677.zip
Userland+LibGUI: Make Margins arguments match CSS ordering
Previously the argument order for Margins was (left, top, right, bottom). To make it more familiar and closer to how CSS does it, the argument order is now (top, right, bottom, left).
Diffstat (limited to 'Userland/Libraries/LibGUI/Wizards')
-rw-r--r--Userland/Libraries/LibGUI/Wizards/WizardDialog.cpp2
-rw-r--r--Userland/Libraries/LibGUI/Wizards/WizardPage.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/Wizards/WizardDialog.cpp b/Userland/Libraries/LibGUI/Wizards/WizardDialog.cpp
index be4acdff42..5f8ae88bd2 100644
--- a/Userland/Libraries/LibGUI/Wizards/WizardDialog.cpp
+++ b/Userland/Libraries/LibGUI/Wizards/WizardDialog.cpp
@@ -41,7 +41,7 @@ WizardDialog::WizardDialog(Window* parent_window)
auto& nav_container_widget = main_widget.add<Widget>();
nav_container_widget.set_layout<HorizontalBoxLayout>();
nav_container_widget.set_fixed_height(42);
- nav_container_widget.layout()->set_margins({ 10, 0, 10, 0 });
+ nav_container_widget.layout()->set_margins({ 0, 10, 0, 10 });
nav_container_widget.layout()->set_spacing(0);
nav_container_widget.layout()->add_spacer();
diff --git a/Userland/Libraries/LibGUI/Wizards/WizardPage.cpp b/Userland/Libraries/LibGUI/Wizards/WizardPage.cpp
index 5ab950bf83..9f9286c68e 100644
--- a/Userland/Libraries/LibGUI/Wizards/WizardPage.cpp
+++ b/Userland/Libraries/LibGUI/Wizards/WizardPage.cpp
@@ -26,7 +26,7 @@ WizardPage::WizardPage(const String& title_text, const String& subtitle_text)
header_widget.set_fixed_height(58);
header_widget.set_layout<VerticalBoxLayout>();
- header_widget.layout()->set_margins({ 30, 15, 30, 0 });
+ header_widget.layout()->set_margins({ 15, 30, 0, 30 });
m_title_label = header_widget.add<Label>(title_text);
m_title_label->set_font(Gfx::FontDatabase::default_font().bold_variant());
m_title_label->set_fixed_height(m_title_label->font().glyph_height() + 2);