summaryrefslogtreecommitdiff
path: root/Userland/Demos
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/Demos
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/Demos')
-rw-r--r--Userland/Demos/WidgetGallery/GalleryGML/BasicsTab.gml6
-rw-r--r--Userland/Demos/WidgetGallery/GalleryGML/SlidersTab.gml2
2 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Demos/WidgetGallery/GalleryGML/BasicsTab.gml b/Userland/Demos/WidgetGallery/GalleryGML/BasicsTab.gml
index 0d3bcf245d..77ead7ffb5 100644
--- a/Userland/Demos/WidgetGallery/GalleryGML/BasicsTab.gml
+++ b/Userland/Demos/WidgetGallery/GalleryGML/BasicsTab.gml
@@ -20,7 +20,7 @@
shadow: "Sunken"
thickness: 1
layout: @GUI::VerticalBoxLayout {
- margins: [4, 3, 4, 3]
+ margins: [3, 4, 3, 4]
}
@GUI::Label {
@@ -37,7 +37,7 @@
@GUI::Widget {
layout: @GUI::VerticalBoxLayout {
- margins: [4, 0, 4, 0]
+ margins: [0, 4, 0, 4]
}
@GUI::Label {
@@ -85,7 +85,7 @@
@GUI::Widget {
fixed_height: 125
layout: @GUI::VerticalBoxLayout {
- margins: [8, 3, 8, 3]
+ margins: [3, 8, 3, 8]
}
@GUI::Widget {
diff --git a/Userland/Demos/WidgetGallery/GalleryGML/SlidersTab.gml b/Userland/Demos/WidgetGallery/GalleryGML/SlidersTab.gml
index 982c4ca660..cd02de5986 100644
--- a/Userland/Demos/WidgetGallery/GalleryGML/SlidersTab.gml
+++ b/Userland/Demos/WidgetGallery/GalleryGML/SlidersTab.gml
@@ -36,7 +36,7 @@
@GUI::Widget {
fixed_height: 88
layout: @GUI::VerticalBoxLayout {
- margins: [8, 0, 8, 0]
+ margins: [0, 8, 0, 8]
}
@GUI::Widget {