- 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>
63 lines
3.5 KiB
XML
63 lines
3.5 KiB
XML
<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"
|
|
Width="400" SizeToContent="Height"
|
|
WindowStartupLocation="CenterOwner"
|
|
ResizeMode="NoResize"
|
|
ShowInTaskbar="False"
|
|
WindowStyle="None"
|
|
AllowsTransparency="True"
|
|
Background="Transparent"
|
|
MouseLeftButtonDown="Window_MouseLeftButtonDown">
|
|
<Window.Resources>
|
|
<SolidColorBrush x:Key="PrimaryBrush" Color="#6366F1"/>
|
|
<SolidColorBrush x:Key="TextPrimaryBrush" Color="#1E293B"/>
|
|
<SolidColorBrush x:Key="TextSecondaryBrush" Color="#64748B"/>
|
|
<SolidColorBrush x:Key="BorderBrush" Color="#CBD5E1"/>
|
|
<SolidColorBrush x:Key="CardBrush" Color="#FFFFFF"/>
|
|
<SolidColorBrush x:Key="InputBackgroundBrush" Color="#F1F5F9"/>
|
|
</Window.Resources>
|
|
|
|
<Border CornerRadius="12" Background="{DynamicResource CardBrush}" Margin="8">
|
|
<Border.Effect>
|
|
<DropShadowEffect BlurRadius="20" ShadowDepth="5" Opacity="0.2" Direction="270" Color="Black"/>
|
|
</Border.Effect>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Header -->
|
|
<Border Grid.Row="0" Background="{DynamicResource PrimaryBrush}" CornerRadius="12,12,0,0" Padding="16,10">
|
|
<Grid>
|
|
<TextBlock Text="" 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="" 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">
|
|
<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" 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" Content="OK"
|
|
Foreground="White" BorderThickness="0"
|
|
Padding="16,8" Margin="8,0,0,0" Cursor="Hand" IsDefault="True"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
</Window>
|