feat: show calendar events in light tinted colours on request

This commit is contained in:
Linus Rath
2026-10-31 05:48:55 +01:00
parent 90ce7c1b3c
commit 01578ac2fb
8 changed files with 120 additions and 6 deletions
@@ -44,6 +44,7 @@ export function CalendarSettings() {
const timeZone = useSettingsStore((s) => s.calendarTimeZone);
const showTimeInMonth = useSettingsStore((s) => s.calendarShowTimeInMonth);
const showWeekNumbers = useSettingsStore((s) => s.calendarShowWeekNumbers);
const tintedEvents = useSettingsStore((s) => s.calendarTintedEvents);
const freeScroll = useSettingsStore((s) => s.calendarFreeScroll);
const birthdayCal = useSettingsStore((s) => s.showBirthdayCalendar);
const tasksEnabled = useSettingsStore((s) => s.enableCalendarTasks);
@@ -135,6 +136,19 @@ export function CalendarSettings() {
/>
</SettingItem>
<SettingItem
label={t('calendar.settings.tinted_events', 'Light event colors')}
description={t(
'calendar.settings.tinted_events_desc',
'Show events as a light tint of their calendar color with a colored bar at the start, as in Outlook and on printouts, instead of solid blocks.',
)}
>
<ToggleSwitch
checked={tintedEvents}
onChange={(v) => update('calendarTintedEvents', v)}
/>
</SettingItem>
<SettingItem
label={t('calendar.settings.show_week_numbers', 'Show week numbers')}
description={t('calendar.settings.show_week_numbers_mobile_desc', 'Display week numbers in the month view.')}