Birthday entry type, relative dates, list/compact/cards views
- Task dialog: Appointment | Birthday switch. Birthday = name + "19.03." or "19.03.1986" (no time), live preview with weekday, age and days left - Birthday folders open the birthday form; yearly tasks in such folders are migrated once - Birthdays show "19. Maerz" instead of date + time; every task shows "in 15 days" / "3 days ago" (red when overdue) - View switch: list, compact (one line), cards (calendar tiles), persisted - ICS: birthdays as all-day events - 59 tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,13 +14,13 @@ namespace ReminderOrganizer
|
||||
|
||||
public ReminderTask TaskResult => _viewModel.TaskResult;
|
||||
|
||||
public TaskWindow(ReminderTask? existingTask, bool darkMode)
|
||||
public TaskWindow(ReminderTask? existingTask, bool darkMode, bool defaultBirthday = false)
|
||||
{
|
||||
InitializeComponent();
|
||||
Theme.Apply(Resources, darkMode);
|
||||
|
||||
var localizationService = (ILocalizationService)ServiceLocator.Services.GetService(typeof(ILocalizationService))!;
|
||||
_viewModel = new TaskViewModel(localizationService, existingTask);
|
||||
_viewModel = new TaskViewModel(localizationService, existingTask, defaultBirthday);
|
||||
_viewModel.RequestClose += OnRequestClose;
|
||||
DataContext = _viewModel;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user