mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
WidgetGallery: Use dynamic layout techniques in the sliders tab
This commit is contained in:
parent
30309bac1b
commit
90b019b4c4
Notes:
sideshowbarker
2024-07-17 00:16:54 +09:00
Author: https://github.com/frhun Commit: https://github.com/SerenityOS/serenity/commit/90b019b4c4 Pull-request: https://github.com/SerenityOS/serenity/pull/17407 Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 15 additions and 11 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue