1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 22:04:59 +00:00
serenity/Userland/Libraries/LibGUI/DatePickerDialog.gml
david072 8e77c72a5c LibGUI: Add a date picker dialog
This adds a simple date picker dialog using the existing GUI::Calendar.
2024-01-06 10:37:53 -07:00

56 lines
1.1 KiB
Text

@GUI::Widget {
shrink_to_fit: true
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {}
@GUI::Widget {
fixed_height: 20
fill_with_background_color: true
layout: @GUI::HorizontalBoxLayout {}
@GUI::ComboBox {
name: "month_box"
model_only: true
}
@GUI::SpinBox {
name: "year_box"
fixed_size: [55, 20]
min: 0
max: 9999
}
@GUI::Layout::Spacer {}
}
@GUI::Widget {
fixed_width: 200
fixed_height: 200
layout: @GUI::VerticalBoxLayout {}
@GUI::Calendar {
name: "calendar_view"
}
}
@GUI::Widget {
fixed_height: 20
fill_with_background_color: true
layout: @GUI::HorizontalBoxLayout {}
@GUI::Layout::Spacer {}
@GUI::Button {
name: "cancel_button"
text: "Cancel"
fixed_size: [80, 20]
}
@GUI::Button {
name: "ok_button"
text: "OK"
fixed_size: [80, 20]
default: true
}
}
}