1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:17:46 +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

@ -1,12 +1,12 @@
/*
* Copyright (c) 2022-2022, Olivier De Cannière <olivier.decanniere96@gmail.com>
* Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGUI/ComboBox.h>
#include <LibGUI/SettingsWindow.h>
class CalendarSettingsWidget final : public GUI::SettingsWindow::Tab {
@ -21,5 +21,7 @@ private:
static constexpr Array<StringView, 2> const m_view_modes = { "Month"sv, "Year"sv };
RefPtr<GUI::ComboBox> m_first_day_of_week_combobox;
RefPtr<GUI::ComboBox> m_first_day_of_weekend_combobox;
RefPtr<GUI::SpinBox> m_weekend_length_spinbox;
RefPtr<GUI::ComboBox> m_default_view_combobox;
};