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

CalendarSettings: Add Weekend-specific settings

In some calendars, weekends start on other days than saturday and can
also have different lengths than 2 days. This patch allows you to set
these values, however they don't do anything yet as Serenity's Calendar
doesn't care about Weekends at the moment.
This commit is contained in:
Tobias Christiansen 2022-10-04 11:36:09 +02:00 committed by Tim Flynn
parent 2a0a274898
commit eca559d65d
3 changed files with 81 additions and 1 deletions

View file

@ -36,6 +36,63 @@
}
}
@GUI::GroupBox {
title: "Preferred Weekend Configuration"
fixed_height: 72
layout: @GUI::VerticalBoxLayout {
margins: [6]
spacing: 2
}
@GUI::Label {
text: "Determines the start and length of the weekend."
word_wrap: true
text_alignment: "CenterLeft"
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
spacing: 16
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
@GUI::Label {
text: "First day:"
text_alignment: "CenterLeft"
fixed_width: 84
}
@GUI::ComboBox {
name: "first_day_of_weekend"
}
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
spacing: 8
}
@GUI::Label {
text: "Length:"
text_alignment: "CenterLeft"
}
@GUI::SpinBox {
name: "weekend_length"
min: 0
max: 7
}
@GUI::Label {
text: "Days"
text_alignment: "CenterLeft"
}
}
}
}
@GUI::GroupBox {
title: "Default view"
fixed_height: 72