summaryrefslogtreecommitdiff
path: root/Userland/Demos
diff options
context:
space:
mode:
authorFrHun <28605587+frhun@users.noreply.github.com>2023-02-10 01:16:41 +0100
committerSam Atkins <atkinssj@gmail.com>2023-02-17 16:25:57 +0000
commit90b019b4c4beb334194e23677e0ac98525ff0558 (patch)
treea7873b86f88ada7624e9f2a6261a0ebbb4a729a7 /Userland/Demos
parent30309bac1beb4940c78d3e182882c45a8b7ed9d0 (diff)
downloadserenity-90b019b4c4beb334194e23677e0ac98525ff0558.zip
WidgetGallery: Use dynamic layout techniques in the sliders tab
Diffstat (limited to 'Userland/Demos')
-rw-r--r--Userland/Demos/WidgetGallery/GalleryGML/SlidersTab.gml26
1 files changed, 15 insertions, 11 deletions
diff --git a/Userland/Demos/WidgetGallery/GalleryGML/SlidersTab.gml b/Userland/Demos/WidgetGallery/GalleryGML/SlidersTab.gml
index 0f9e0fc986..0996171f50 100644
--- a/Userland/Demos/WidgetGallery/GalleryGML/SlidersTab.gml
+++ b/Userland/Demos/WidgetGallery/GalleryGML/SlidersTab.gml
@@ -5,13 +5,13 @@
}
@GUI::GroupBox {
- fixed_height: 129
+ preferred_height: "fit"
layout: @GUI::VerticalBoxLayout {
margins: [6]
}
@GUI::GroupBox {
- max_height: 30
+ preferred_height: "fit"
layout: @GUI::HorizontalBoxLayout {
margins: [8]
}
@@ -37,9 +37,8 @@
@GUI::Frame {
shape: "Panel"
shadow: "Sunken"
+ preferred_height: "fit"
thickness: 1
- max_width: 394
- max_height: 79
layout: @GUI::VerticalBoxLayout {
margins: [1]
}
@@ -51,13 +50,11 @@
}
@GUI::Widget {
- fixed_height: 88
+ preferred_height: "fit"
layout: @GUI::VerticalBoxLayout {
margins: [0, 8]
}
- @GUI::Layout::Spacer {}
-
@GUI::Scrollbar {
name: "enabled_scrollbar"
fixed_height: 16
@@ -66,12 +63,8 @@
value: 50
}
- @GUI::Layout::Spacer {}
-
@GUI::HorizontalSeparator {}
- @GUI::Layout::Spacer {}
-
@GUI::Scrollbar {
name: "disabled_scrollbar"
fixed_height: 16
@@ -84,6 +77,9 @@
layout: @GUI::HorizontalBoxLayout {
margins: [6]
}
+ preferred_height: "opportunistic_grow"
+
+ @GUI::Layout::Spacer {}
@GUI::VerticalProgressbar {
name: "vertical_progressbar_left"
@@ -99,6 +95,8 @@
tooltip: "Fixed"
}
+ @GUI::Layout::Spacer {}
+
@GUI::VerticalSeparator {}
@GUI::VerticalSlider {
@@ -111,6 +109,8 @@
@GUI::VerticalSeparator {}
+ @GUI::Layout::Spacer {}
+
@GUI::VerticalProgressbar {
name: "vertical_progressbar_right"
fixed_width: 36
@@ -124,15 +124,19 @@
value: 0
tooltip: "Proportional"
}
+
+ @GUI::Layout::Spacer {}
}
@GUI::GroupBox {
layout: @GUI::VerticalBoxLayout {
margins: [6]
}
+ preferred_height: "fit"
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
+ preferred_height: "fit"
@GUI::HorizontalSlider {
name: "horizontal_slider_left"