1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +00:00

Calendar: Add a Calendar settings dialog for the first day of the week

This commit adds a new settings dialog for the Calendar application and
applet. It allows the user to specify their preferred first day of the
week.
This commit is contained in:
Olivier De Cannière 2022-07-16 01:33:39 +02:00 committed by Tim Flynn
parent 9414525d75
commit 0eceed4fd7
12 changed files with 178 additions and 2 deletions

View file

@ -6,12 +6,12 @@
#include "AddEventDialog.h"
#include <Applications/Calendar/CalendarWindowGML.h>
#include <LibConfig/Client.h>
#include <LibCore/System.h>
#include <LibGUI/Action.h>
#include <LibGUI/ActionGroup.h>
#include <LibGUI/Application.h>
#include <LibGUI/BoxLayout.h>
#include <LibGUI/Button.h>
#include <LibGUI/Calendar.h>
#include <LibGUI/Icon.h>
#include <LibGUI/Menu.h>
@ -26,6 +26,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto app = TRY(GUI::Application::try_create(arguments));
Config::pledge_domain("Calendar");
TRY(Core::System::pledge("stdio recvfd sendfd rpath"));
TRY(Core::System::unveil("/etc/timezone", "r"));
TRY(Core::System::unveil("/res", "r"));