Professional redesign: native window, settings, calmer UI

- WindowChrome: resizable, snap layouts, native shadow, DWM rounded
  corners; size/position remembered; fade-in after load (no theme flash)
- Menu bar replaced by a settings window (theme system/light/dark,
  language, sound, autostart, categories, data, shortcuts, about)
- Shared styles in Themes/Controls.xaml; neutral palette with one accent
  applied to Application.Resources (context menus/tooltips themed)
- Rows: To-Do style check left, title + details, relative date right,
  actions on hover, visible selection (Enter edits, Del deletes)
- No glow/scale effects; subtle animations (dialogs, snackbar, chevrons)
- Checking a recurring task moves it to the next date (with undo)
- Themed combo box, date picker, check box; neutral dialog headers
- New flat app icon (tools/make_icon.py)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-29 18:10:45 +01:00
parent 00e9990feb
commit 3e0b00f11c
28 changed files with 2100 additions and 1434 deletions

View File

@@ -20,26 +20,7 @@
<SolidColorBrush x:Key="InputBackgroundBrush" Color="#F1F5F9"/>
<SolidColorBrush x:Key="HoverBrush" Color="#E2E8F0"/>
<Style x:Key="Segment" TargetType="RadioButton">
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FontSize" Value="12"/>
<Setter Property="Foreground" Value="{DynamicResource TextSecondaryBrush}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Border x:Name="bd" CornerRadius="6" Padding="14,6" Background="Transparent">
<ContentPresenter VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="bd" Property="Background" Value="{DynamicResource PrimaryBrush}"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="Label" TargetType="TextBlock">
<Setter Property="FontSize" Value="11"/>
@@ -110,7 +91,7 @@
</Style>
</Window.Resources>
<Border CornerRadius="12" Background="{DynamicResource CardBrush}" Margin="8">
<Border CornerRadius="10" Background="{DynamicResource CardBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1" Margin="10">
<Border.Effect>
<DropShadowEffect BlurRadius="20" ShadowDepth="5" Opacity="0.25" Direction="270" Color="Black"/>
</Border.Effect>
@@ -121,21 +102,19 @@
</Grid.RowDefinitions>
<!-- Header -->
<Border Grid.Row="0" Background="{DynamicResource PrimaryBrush}" CornerRadius="12,12,0,0" Padding="16,10">
<Border Grid.Row="0" Background="Transparent" CornerRadius="12,12,0,0" Padding="20,14,12,6">
<Grid>
<StackPanel Orientation="Horizontal">
<TextBlock Text="&#xEA8F;" FontFamily="Segoe MDL2 Assets" FontSize="15" Foreground="White" VerticalAlignment="Center"/>
<TextBlock Text="{Binding WindowTitle}" FontSize="14" FontWeight="SemiBold" Foreground="White" VerticalAlignment="Center" Margin="10,0,0,0"/>
<TextBlock Text="{Binding WindowTitle}" FontSize="16" FontWeight="SemiBold" Foreground="{DynamicResource TextPrimaryBrush}" VerticalAlignment="Center"/>
</StackPanel>
<Button Content="&#xE8BB;" FontFamily="Segoe MDL2 Assets" FontSize="10" HorizontalAlignment="Right" Foreground="White" Background="Transparent" BorderThickness="0"
Width="28" Height="28" Cursor="Hand" Command="{Binding CancelCommand}" IsCancel="True"/>
<Button Content="&#xE8BB;" Style="{StaticResource IconButton}" FontSize="10" HorizontalAlignment="Right" Command="{Binding CancelCommand}" IsCancel="True"/>
</Grid>
</Border>
<!-- Content -->
<StackPanel Grid.Row="1" Margin="18,16,18,18">
<!-- Type: appointment / birthday -->
<Border CornerRadius="8" Background="{DynamicResource InputBackgroundBrush}" Padding="3" Margin="0,0,0,14" HorizontalAlignment="Left">
<Border Style="{StaticResource SegmentHost}" Margin="0,0,0,14" HorizontalAlignment="Left">
<StackPanel Orientation="Horizontal">
<RadioButton GroupName="type" IsChecked="{Binding IsAppointment}" Style="{StaticResource Segment}">
<StackPanel Orientation="Horizontal">