1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 08:17:34 +00:00

Calendar: Add inputs to change event end date/time

This commit is contained in:
lanmonster 2023-10-07 14:54:33 -05:00 committed by Andreas Kling
parent a7c3d39bab
commit e5c9d7ce26
2 changed files with 121 additions and 23 deletions

View file

@ -6,13 +6,11 @@
@GUI::Widget {
fill_with_background_color: true
fixed_height: 45
layout: @GUI::VerticalBoxLayout {
spacing: 4
}
fixed_height: 20
layout: @GUI::HorizontalBoxLayout {}
@GUI::Label {
text: "Add title & date:"
text: "Title:"
text_alignment: "CenterLeft"
fixed_height: 14
font_weight: "Bold"
@ -20,7 +18,7 @@
@GUI::TextBox {
name: "event_title_textbox"
fixed_height: 20
fixed_size: [310, 20]
}
}
@ -31,6 +29,13 @@
spacing: 4
}
@GUI::Label {
text: "Start:"
text_alignment: "CenterLeft"
fixed_height: 14
font_weight: "Bold"
}
@GUI::ComboBox {
name: "start_month"
model_only: true
@ -49,14 +54,6 @@
min: 0
max: 9999
}
}
@GUI::Widget {
fill_with_background_color: true
fixed_height: 25
layout: @GUI::HorizontalBoxLayout {
spacing: 4
}
@GUI::SpinBox {
name: "start_hour"
@ -79,6 +76,60 @@
}
}
@GUI::Widget {
fill_with_background_color: true
fixed_height: 25
layout: @GUI::HorizontalBoxLayout {
spacing: 4
}
@GUI::Label {
text: "End:"
text_alignment: "CenterLeft"
fixed_height: 14
font_weight: "Bold"
}
@GUI::ComboBox {
name: "end_month"
model_only: true
fixed_size: [50, 20]
}
@GUI::SpinBox {
name: "end_day"
fixed_size: [40, 20]
min: 1
}
@GUI::SpinBox {
name: "end_year"
fixed_size: [55, 20]
min: 0
max: 9999
}
@GUI::SpinBox {
name: "end_hour"
fixed_size: [50, 20]
min: 1
max: 12
}
@GUI::SpinBox {
name: "end_minute"
fixed_size: [40, 20]
min: 1
max: 59
}
@GUI::ComboBox {
name: "end_meridiem"
model_only: true
fixed_size: [55, 20]
}
}
@GUI::Layout::Spacer {}
@GUI::Widget {