ladybird/Userland/Libraries/LibGUI/FontPickerDialog.gml
Sam Atkins e0fd5beb36 LibGUI+Applications: Default the SpinBox min/max to the full int range
By default, a SpinBox's value should be unlimited, (or as close as we
can get to that,) and then the GML or code can impose a limit if
needed. This saves the developer from entering an arbitrary "big" max
value when they want the value to have no maximum.

I've audited the use of SpinBox and added `min: 0`, and removed a `max`,
where appropriate. All existing SpinBoxes constructed in code have a
range set explicitly as far as I can tell.
2024-01-14 13:46:14 +00:00

87 lines
1.8 KiB
Text

@GUI::Widget {
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {
margins: [4, 4, 4, 4]
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
@GUI::Widget {
layout: @GUI::VerticalBoxLayout {}
@GUI::Label {
text: "Family:"
text_alignment: "CenterLeft"
fixed_height: 16
}
@GUI::ListView {
name: "family_list_view"
}
}
@GUI::Widget {
fixed_width: 100
layout: @GUI::VerticalBoxLayout {}
@GUI::Label {
text: "Style:"
text_alignment: "CenterLeft"
fixed_height: 16
}
@GUI::ListView {
name: "variant_list_view"
}
}
@GUI::Widget {
fixed_width: 80
layout: @GUI::VerticalBoxLayout {}
@GUI::Label {
text: "Size:"
text_alignment: "CenterLeft"
fixed_height: 16
}
@GUI::SpinBox {
name: "size_spin_box"
min: 0
}
@GUI::ListView {
name: "size_list_view"
}
}
}
@GUI::GroupBox {
layout: @GUI::VerticalBoxLayout {}
title: "Sample text"
fixed_height: 80
@GUI::Label {
name: "sample_text_label"
text: "The quick brown fox jumps over the lazy dog."
}
}
@GUI::Widget {
fixed_height: 22
layout: @GUI::HorizontalBoxLayout {}
@GUI::Layout::Spacer {}
@GUI::DialogButton {
name: "ok_button"
text: "OK"
}
@GUI::DialogButton {
name: "cancel_button"
text: "Cancel"
}
}
}