1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 11:08:12 +00:00
serenity/Userland/Demos/WidgetGallery/GalleryGML/SlidersTab.gml
Mustafa Quraish c545d4ffcb WidgetGallery: Add GUI::ValueSlider widget
This was a cool slider and was missing from the gallery completely.
Vertical mode for this isn't enabled, and it looked awfully crammed
in the bottom along with the other horizontal sliders, so for now
I've just added this to the top, and it controls the opacity of the
image along with the opacity slider.
2021-09-11 11:37:39 +02:00

188 lines
3.8 KiB
Text

@GUI::Widget {
name: "sliders_tab"
layout: @GUI::VerticalBoxLayout {
margins: [4]
}
@GUI::GroupBox {
fixed_height: 129
layout: @GUI::VerticalBoxLayout {
margins: [8]
}
@GUI::GroupBox {
max_height: 30
layout: @GUI::HorizontalBoxLayout {
margins: [8]
}
@GUI::OpacitySlider {
name: "opacity_slider"
tooltip: "Opacity Slider"
}
@GUI::VerticalSeparator {
}
@GUI::ValueSlider {
name: "opacity_value_slider"
min: 0
max: 100
value: 100
tooltip: "Value Slider"
}
}
@GUI::HorizontalSeparator {
}
@GUI::Frame {
shape: "Panel"
shadow: "Sunken"
thickness: 1
max_width: 394
max_height: 79
layout: @GUI::VerticalBoxLayout {
margins: [1]
}
@GUI::ImageWidget {
name: "opacity_imagewidget"
}
}
}
@GUI::Widget {
fixed_height: 88
layout: @GUI::VerticalBoxLayout {
margins: [0, 8]
}
@GUI::Widget {
}
@GUI::Scrollbar {
name: "enabled_scrollbar"
fixed_height: 16
fixed_width: -1
min: 0
max: 100
value: 50
}
@GUI::Widget {
}
@GUI::HorizontalSeparator {
}
@GUI::Widget {
}
@GUI::Scrollbar {
name: "disabled_scrollbar"
fixed_height: 16
fixed_width: -1
}
@GUI::Widget {
}
}
@GUI::GroupBox {
layout: @GUI::HorizontalBoxLayout {
margins: [8]
}
@GUI::VerticalProgressbar {
name: "vertical_progressbar_left"
fixed_width: 36
}
@GUI::VerticalSlider {
name: "vertical_slider_left"
knob_size_mode: "Fixed"
min: 0
max: 100
value: 100
tooltip: "Fixed"
}
@GUI::VerticalSeparator {
}
@GUI::VerticalSlider {
enabled: false
tooltip: "Disabled"
min: 0
max: 10
value: 5
}
@GUI::VerticalSeparator {
}
@GUI::VerticalProgressbar {
name: "vertical_progressbar_right"
fixed_width: 36
}
@GUI::VerticalSlider {
name: "vertical_slider_right"
knob_size_mode: "Proportional"
min: 0
max: 4
value: 0
tooltip: "Proportional"
}
}
@GUI::GroupBox {
layout: @GUI::VerticalBoxLayout {
margins: [8]
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
}
@GUI::HorizontalSlider {
name: "horizontal_slider_left"
knob_size_mode: "Fixed"
min: 0
max: 100
value: 0
}
@GUI::VerticalSeparator {
}
@GUI::HorizontalSlider {
enabled: false
min: 0
max: 10
value: 5
}
@GUI::VerticalSeparator {
}
@GUI::HorizontalSlider {
name: "horizontal_slider_right"
knob_size_mode: "Proportional"
min: 0
max: 5
value: 0
}
}
@GUI::HorizontalSeparator {
}
@GUI::HorizontalProgressbar {
name: "horizontal_progressbar"
fixed_height: 20
}
}
}