Files
ReminderOrganizer/InputDialog.xaml
Michi 3e0b00f11c 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>
2026-11-29 18:10:45 +01:00

62 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="10" Background="{DynamicResource CardBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1" Margin="10">
<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="Transparent" CornerRadius="12,12,0,0" Padding="20,14,12,6">
<Grid>
<TextBlock Text="&#xE8B7;" FontFamily="Segoe MDL2 Assets" FontSize="16" Foreground="{DynamicResource TextPrimaryBrush}" VerticalAlignment="Center"/>
<TextBlock x:Name="TxtTitle" FontSize="16" FontWeight="SemiBold" Foreground="{DynamicResource TextPrimaryBrush}" VerticalAlignment="Center" Margin="0,0,36,0"/>
<Button Content="&#xE8BB;" Style="{StaticResource IconButton}" FontSize="10" HorizontalAlignment="Right" Click="BtnCancel_Click" IsCancel="True"/>
</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>