1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

WidgetGallery: Use dynamic layout techniques in the sliders tab

This commit is contained in:
FrHun 2023-02-10 01:16:41 +01:00 committed by Sam Atkins
parent 30309bac1b
commit 90b019b4c4

View file

@ -5,13 +5,13 @@
} }
@GUI::GroupBox { @GUI::GroupBox {
fixed_height: 129 preferred_height: "fit"
layout: @GUI::VerticalBoxLayout { layout: @GUI::VerticalBoxLayout {
margins: [6] margins: [6]
} }
@GUI::GroupBox { @GUI::GroupBox {
max_height: 30 preferred_height: "fit"
layout: @GUI::HorizontalBoxLayout { layout: @GUI::HorizontalBoxLayout {
margins: [8] margins: [8]
} }
@ -37,9 +37,8 @@
@GUI::Frame { @GUI::Frame {
shape: "Panel" shape: "Panel"
shadow: "Sunken" shadow: "Sunken"
preferred_height: "fit"
thickness: 1 thickness: 1
max_width: 394
max_height: 79
layout: @GUI::VerticalBoxLayout { layout: @GUI::VerticalBoxLayout {
margins: [1] margins: [1]
} }
@ -51,13 +50,11 @@
} }
@GUI::Widget { @GUI::Widget {
fixed_height: 88 preferred_height: "fit"
layout: @GUI::VerticalBoxLayout { layout: @GUI::VerticalBoxLayout {
margins: [0, 8] margins: [0, 8]
} }
@GUI::Layout::Spacer {}
@GUI::Scrollbar { @GUI::Scrollbar {
name: "enabled_scrollbar" name: "enabled_scrollbar"
fixed_height: 16 fixed_height: 16
@ -66,12 +63,8 @@
value: 50 value: 50
} }
@GUI::Layout::Spacer {}
@GUI::HorizontalSeparator {} @GUI::HorizontalSeparator {}
@GUI::Layout::Spacer {}
@GUI::Scrollbar { @GUI::Scrollbar {
name: "disabled_scrollbar" name: "disabled_scrollbar"
fixed_height: 16 fixed_height: 16
@ -84,6 +77,9 @@
layout: @GUI::HorizontalBoxLayout { layout: @GUI::HorizontalBoxLayout {
margins: [6] margins: [6]
} }
preferred_height: "opportunistic_grow"
@GUI::Layout::Spacer {}
@GUI::VerticalProgressbar { @GUI::VerticalProgressbar {
name: "vertical_progressbar_left" name: "vertical_progressbar_left"
@ -99,6 +95,8 @@
tooltip: "Fixed" tooltip: "Fixed"
} }
@GUI::Layout::Spacer {}
@GUI::VerticalSeparator {} @GUI::VerticalSeparator {}
@GUI::VerticalSlider { @GUI::VerticalSlider {
@ -111,6 +109,8 @@
@GUI::VerticalSeparator {} @GUI::VerticalSeparator {}
@GUI::Layout::Spacer {}
@GUI::VerticalProgressbar { @GUI::VerticalProgressbar {
name: "vertical_progressbar_right" name: "vertical_progressbar_right"
fixed_width: 36 fixed_width: 36
@ -124,15 +124,19 @@
value: 0 value: 0
tooltip: "Proportional" tooltip: "Proportional"
} }
@GUI::Layout::Spacer {}
} }
@GUI::GroupBox { @GUI::GroupBox {
layout: @GUI::VerticalBoxLayout { layout: @GUI::VerticalBoxLayout {
margins: [6] margins: [6]
} }
preferred_height: "fit"
@GUI::Widget { @GUI::Widget {
layout: @GUI::HorizontalBoxLayout {} layout: @GUI::HorizontalBoxLayout {}
preferred_height: "fit"
@GUI::HorizontalSlider { @GUI::HorizontalSlider {
name: "horizontal_slider_left" name: "horizontal_slider_left"