Fix data loss risk, reminder bugs; theme, credits, tests

- Store tasks in %APPDATA% (single-file extract dir lost data on update),
  atomic serialized saves, corrupt-file backup, migration of old tasks.json
- Reminders without description never showed (empty balloon text threw)
- Catch up missed reminders on start; monthly recurrence no longer drifts
- Task dialog: date pick kept 00:00, cancel leaked recurrence changes
- CSV import understands quoted fields written by export
- Confirm before deleting; name folders on create; tasks sorted by date
- Single instance, autostart starts hidden in tray, tray icon disposed
- Theme helper for all dialogs, MDL2/Path icons instead of emojis,
  fixed folder selection/badge, localized counts and messages
- Credits (c) Michael Media + Discord link, exe Company/Copyright
- Locales embedded; xUnit tests (24); README, CLAUDE.md, sprite-generator

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 14:08:53 +01:00
parent 5ca2770829
commit 1918712f7f
42 changed files with 1620 additions and 820 deletions

View File

@@ -1,8 +1,8 @@
<Window x:Class="ReminderOrganizer.InputDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Input"
Height="200" Width="400"
Title="Input"
Width="400" SizeToContent="Height"
WindowStartupLocation="CenterOwner"
ResizeMode="NoResize"
ShowInTaskbar="False"
@@ -12,7 +12,6 @@
MouseLeftButtonDown="Window_MouseLeftButtonDown">
<Window.Resources>
<SolidColorBrush x:Key="PrimaryBrush" Color="#6366F1"/>
<SolidColorBrush x:Key="PrimaryHoverBrush" Color="#4F46E5"/>
<SolidColorBrush x:Key="TextPrimaryBrush" Color="#1E293B"/>
<SolidColorBrush x:Key="TextSecondaryBrush" Color="#64748B"/>
<SolidColorBrush x:Key="BorderBrush" Color="#CBD5E1"/>
@@ -27,32 +26,34 @@
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- Header -->
<Border Grid.Row="0" Background="{DynamicResource PrimaryBrush}" CornerRadius="12,12,0,0" Padding="16,12">
<Border Grid.Row="0" Background="{DynamicResource PrimaryBrush}" CornerRadius="12,12,0,0" Padding="16,10">
<Grid>
<TextBlock Text="📁" FontSize="16" Foreground="White" VerticalAlignment="Center"/>
<TextBlock x:Name="TxtPrompt" FontSize="14" FontWeight="SemiBold" Foreground="White" VerticalAlignment="Center" Margin="28,0,0,0"/>
<Button Content="✕" HorizontalAlignment="Right" Foreground="White" Background="Transparent" BorderThickness="0"
<TextBlock Text="&#xE8B7;" FontFamily="Segoe MDL2 Assets" FontSize="16" Foreground="White" VerticalAlignment="Center"/>
<TextBlock x:Name="TxtTitle" FontSize="14" FontWeight="SemiBold" Foreground="White" VerticalAlignment="Center" Margin="28,0,36,0"/>
<Button Content="&#xE8BB;" FontFamily="Segoe MDL2 Assets" FontSize="10" HorizontalAlignment="Right" Foreground="White" Background="Transparent" BorderThickness="0"
Width="28" Height="28" Cursor="Hand" Click="BtnCancel_Click"/>
</Grid>
</Border>
<!-- Content -->
<StackPanel Grid.Row="1" Margin="16">
<TextBox x:Name="TxtInput" Background="{DynamicResource InputBackgroundBrush}"
BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
<TextBlock x:Name="TxtPrompt" FontSize="11" Foreground="{DynamicResource TextSecondaryBrush}" Margin="0,0,0,4"/>
<TextBox x:Name="TxtInput" Background="{DynamicResource InputBackgroundBrush}"
Foreground="{DynamicResource TextPrimaryBrush}" CaretBrush="{DynamicResource TextPrimaryBrush}"
BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
Padding="12,10" FontSize="14"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,16,0,0">
<Button x:Name="BtnCancel" Click="BtnCancel_Click" Background="Transparent"
Foreground="{DynamicResource TextPrimaryBrush}"
BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
<Button x:Name="BtnCancel" Click="BtnCancel_Click" Background="Transparent" Content="Cancel"
Foreground="{DynamicResource TextPrimaryBrush}" IsCancel="True"
BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
Padding="16,8" Cursor="Hand"/>
<Button x:Name="BtnOk" Click="BtnOk_Click" Background="#6366F1"
Foreground="White" BorderThickness="0"
<Button x:Name="BtnOk" Click="BtnOk_Click" Background="#6366F1" Content="OK"
Foreground="White" BorderThickness="0"
Padding="16,8" Margin="8,0,0,0" Cursor="Hand" IsDefault="True"/>
</StackPanel>
</StackPanel>