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
Notes: sideshowbarker 2024-07-17 00:16:54 +09:00

View file

@ -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"