2026-11-29 14:42:16 +01:00
|
|
|
<Window x:Class="ReminderOrganizer.MainWindow"
|
2026-11-25 13:44:02 +01:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:models="clr-namespace:ReminderOrganizer.Models"
|
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
|
|
|
Title="Reminder Organizer"
|
|
|
|
|
Width="1180" Height="760" MinWidth="980" MinHeight="600"
|
2026-11-25 13:44:02 +01:00
|
|
|
WindowStartupLocation="CenterScreen"
|
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
|
|
|
WindowStyle="SingleBorderWindow" ResizeMode="CanResize"
|
|
|
|
|
Background="{DynamicResource BackgroundBrush}"
|
|
|
|
|
FontFamily="{StaticResource UiFont}" FontSize="13"
|
|
|
|
|
Foreground="{DynamicResource TextPrimaryBrush}"
|
|
|
|
|
UseLayoutRounding="True" TextOptions.TextFormattingMode="Ideal"
|
|
|
|
|
Opacity="0"
|
Upcoming view, search/filters, lead reminders, birthdays, folder colors, ICS, sound, undo
- Upcoming: all folders grouped by overdue/today/tomorrow/7 days/later/done
- Search (Ctrl+F) + All/Today/Overdue filters + hide done (persisted)
- Lead reminder 1/2/3 days or 1 week before; birth year shows age
- Several due reminders are combined into one balloon
- Folder colors and reordering (drag, context menu)
- iCalendar export with RRULE and VALARM
- Generated reminder chime (ComfyUI / Stable Audio), can be turned off
- Undo snackbar for deleted tasks/folders (Ctrl+Z), Ctrl+N, Del, Esc
- 41 tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:03:36 +01:00
|
|
|
PreviewKeyDown="Window_PreviewKeyDown">
|
2026-11-25 13:44:02 +01:00
|
|
|
|
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
|
|
|
<!-- Native resize, snap layouts and shadow; we draw the caption ourselves. -->
|
|
|
|
|
<WindowChrome.WindowChrome>
|
|
|
|
|
<WindowChrome CaptionHeight="44" ResizeBorderThickness="6" GlassFrameThickness="0" CornerRadius="0" UseAeroCaptionButtons="False"/>
|
|
|
|
|
</WindowChrome.WindowChrome>
|
|
|
|
|
|
|
|
|
|
<Window.Resources>
|
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>
2026-11-25 14:08:53 +01:00
|
|
|
|
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
|
|
|
<!-- ===================== sidebar entries ===================== -->
|
|
|
|
|
<!-- Tag = selected (bool) -->
|
|
|
|
|
<Style x:Key="NavButton" TargetType="Button">
|
|
|
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource SidebarTextBrush}"/>
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="Button">
|
|
|
|
|
<Grid Margin="0,1">
|
|
|
|
|
<Border x:Name="Bd" CornerRadius="6" Background="Transparent" Padding="10,7">
|
|
|
|
|
<ContentPresenter/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border x:Name="Bar" Width="3" Height="16" CornerRadius="1.5" HorizontalAlignment="Left" Margin="0,0,0,0"
|
|
|
|
|
Background="{DynamicResource PrimaryBrush}" Visibility="Collapsed"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource HoverBrush}"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="Tag" Value="True">
|
|
|
|
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource AccentSubtleBrush}"/>
|
|
|
|
|
<Setter TargetName="Bar" Property="Visibility" Value="Visible"/>
|
|
|
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
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>
2026-11-25 14:08:53 +01:00
|
|
|
|
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
|
|
|
<!-- ===================== task rows ===================== -->
|
2026-11-29 14:42:16 +01:00
|
|
|
|
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
|
|
|
<!-- relative date: red when overdue -->
|
2026-11-29 14:42:16 +01:00
|
|
|
<Style x:Key="RelText" TargetType="TextBlock">
|
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
|
|
|
<Setter Property="FontSize" Value="12.5"/>
|
|
|
|
|
<Setter Property="FontWeight" Value="Medium"/>
|
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/>
|
2026-11-29 14:42:16 +01:00
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding RelativeDate}" Value="">
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed"/>
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
<DataTrigger Binding="{Binding ReminderDate, Converter={StaticResource DatePassed}}" Value="True">
|
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource DangerBrush}"/>
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
|
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
|
|
|
<!-- category glyph (anniversaries) or repeat glyph (recurring) before the name -->
|
|
|
|
|
<Style x:Key="KindGlyph" TargetType="TextBlock">
|
|
|
|
|
<Setter Property="FontFamily" Value="{StaticResource IconFont}"/>
|
|
|
|
|
<Setter Property="FontSize" Value="13"/>
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
|
<Setter Property="Margin" Value="0,0,8,0"/>
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed"/>
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding IsAnniversary}" Value="True">
|
|
|
|
|
<Setter Property="Visibility" Value="Visible"/>
|
|
|
|
|
<Setter Property="Text" Value="{Binding CategoryGlyph}"/>
|
|
|
|
|
<Setter Property="Foreground" Value="{Binding AccentColor, Converter={StaticResource HexToBrush}}"/>
|
|
|
|
|
<Setter Property="ToolTip" Value="{Binding Category.Name}"/>
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
<!-- row container: hover + selected background, actions fade in -->
|
|
|
|
|
<Style x:Key="RowBorder" TargetType="Border">
|
|
|
|
|
<Setter Property="CornerRadius" Value="7"/>
|
2026-11-29 14:42:16 +01:00
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
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
|
|
|
<Setter Property="Background" Value="{DynamicResource HoverBrush}"/>
|
2026-11-29 14:42:16 +01:00
|
|
|
</Trigger>
|
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
|
|
|
<DataTrigger Value="True">
|
|
|
|
|
<DataTrigger.Binding>
|
|
|
|
|
<MultiBinding Converter="{StaticResource RefEquals}">
|
|
|
|
|
<Binding/>
|
|
|
|
|
<Binding Path="DataContext.SelectedTask" RelativeSource="{RelativeSource AncestorType=Window}"/>
|
|
|
|
|
</MultiBinding>
|
|
|
|
|
</DataTrigger.Binding>
|
|
|
|
|
<Setter Property="Background" Value="{DynamicResource SelectedBrush}"/>
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
<!-- actions: invisible until the row is hovered -->
|
|
|
|
|
<Style x:Key="RowActions" TargetType="StackPanel">
|
|
|
|
|
<Setter Property="Orientation" Value="Horizontal"/>
|
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
|
<Setter Property="Opacity" Value="0"/>
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding IsMouseOver, RelativeSource={RelativeSource AncestorType=Border, AncestorLevel=1}}" Value="True">
|
|
|
|
|
<DataTrigger.EnterActions>
|
|
|
|
|
<BeginStoryboard>
|
|
|
|
|
<Storyboard><DoubleAnimation Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.12"/></Storyboard>
|
|
|
|
|
</BeginStoryboard>
|
|
|
|
|
</DataTrigger.EnterActions>
|
|
|
|
|
<DataTrigger.ExitActions>
|
|
|
|
|
<BeginStoryboard>
|
|
|
|
|
<Storyboard><DoubleAnimation Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.12"/></Storyboard>
|
|
|
|
|
</BeginStoryboard>
|
|
|
|
|
</DataTrigger.ExitActions>
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
<!-- dims done tasks -->
|
|
|
|
|
<Style x:Key="DoneDim" TargetType="FrameworkElement">
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding IsNotified}" Value="True">
|
|
|
|
|
<Setter Property="Opacity" Value="0.5"/>
|
|
|
|
|
</DataTrigger>
|
2026-11-29 14:42:16 +01:00
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
|
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
|
|
|
<!-- List: two lines (title + details), date block right -->
|
|
|
|
|
<DataTemplate x:Key="ListRow">
|
|
|
|
|
<Border Style="{StaticResource RowBorder}" Padding="10,9" Margin="0,1"
|
|
|
|
|
MouseLeftButtonDown="TaskItem_Click" MouseMove="TaskItem_MouseMove">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="36"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
<ColumnDefinition Width="64"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
<CheckBox IsChecked="{Binding IsNotified, Mode=TwoWay}" Style="{StaticResource DoneCheck}" HorizontalAlignment="Left" VerticalAlignment="Center"
|
|
|
|
|
Command="{Binding DataContext.ToggleDoneCommand, RelativeSource={RelativeSource AncestorType=Window}}" CommandParameter="{Binding}"
|
|
|
|
|
ToolTip="{Binding DataContext[DoneTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="1" VerticalAlignment="Center" Margin="0,0,16,0" Style="{StaticResource DoneDim}">
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<TextBlock Style="{StaticResource KindGlyph}"/>
|
|
|
|
|
<TextBlock Text="{Binding Name}" FontSize="13.5" FontWeight="Medium" TextTrimming="CharacterEllipsis" VerticalAlignment="Center"/>
|
|
|
|
|
<Border Margin="8,0,0,0" CornerRadius="4" Padding="6,1" VerticalAlignment="Center" Background="{DynamicResource BadgeBrush}"
|
|
|
|
|
Visibility="{Binding AgeText, Converter={StaticResource StringToVisibility}}">
|
|
|
|
|
<TextBlock Text="{Binding AgeText}" FontSize="11.5" FontWeight="Medium" Foreground="{DynamicResource BadgeTextBrush}"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<TextBlock Text="" FontFamily="{StaticResource IconFont}" FontSize="11" Margin="8,1,0,0" VerticalAlignment="Center"
|
|
|
|
|
Foreground="{DynamicResource TextTertiaryBrush}"
|
|
|
|
|
Visibility="{Binding LeadDays, Converter={StaticResource CountToVisibility}}"
|
|
|
|
|
ToolTip="{Binding DataContext[LeadReminder], RelativeSource={RelativeSource AncestorType=Window}}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,2,0,0" TextElement.FontSize="12" TextElement.Foreground="{DynamicResource TextSecondaryBrush}">
|
|
|
|
|
<!-- folder (only outside a folder view) -->
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,0,10,0"
|
|
|
|
|
Visibility="{Binding DataContext.IsUpcomingMode, RelativeSource={RelativeSource AncestorType=Window}, Converter={StaticResource BoolToVisibility}}">
|
|
|
|
|
<Ellipse Width="6" Height="6" VerticalAlignment="Center" Fill="{Binding FolderColor, Converter={StaticResource HexToBrush}}"/>
|
|
|
|
|
<TextBlock Text="{Binding FolderName}" Margin="5,0,0,0"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<!-- "↻ Weekly" for recurring appointments -->
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,0,10,0"
|
|
|
|
|
Visibility="{Binding RecurrenceText, Converter={StaticResource StringToVisibility}}">
|
|
|
|
|
<TextBlock Text="" FontFamily="{StaticResource IconFont}" FontSize="11" Margin="0,1,5,0" VerticalAlignment="Center"/>
|
|
|
|
|
<TextBlock Text="{Binding RecurrenceText}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<TextBlock Text="{Binding Description}" TextTrimming="CharacterEllipsis" MaxWidth="520"
|
|
|
|
|
Visibility="{Binding Description, Converter={StaticResource StringToVisibility}}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right" Style="{StaticResource DoneDim}">
|
|
|
|
|
<TextBlock Text="{Binding RelativeDate}" Style="{StaticResource RelText}" HorizontalAlignment="Right"/>
|
|
|
|
|
<TextBlock Text="{Binding DisplayDate}" FontSize="11.5" HorizontalAlignment="Right" Margin="0,1,0,0"
|
|
|
|
|
Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="3" Style="{StaticResource RowActions}">
|
|
|
|
|
<Button Content="" Style="{StaticResource RowIcon}"
|
|
|
|
|
Command="{Binding DataContext.EditTaskCommand, RelativeSource={RelativeSource AncestorType=Window}}"
|
|
|
|
|
ToolTip="{Binding DataContext[EditTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
|
|
|
|
|
<Button Content="" Style="{StaticResource RowIcon}"
|
|
|
|
|
Command="{Binding DataContext.DeleteTaskCommand, RelativeSource={RelativeSource AncestorType=Window}}"
|
|
|
|
|
ToolTip="{Binding DataContext[DeleteTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
|
|
|
|
<!-- Compact: one line -->
|
2026-11-29 14:42:16 +01:00
|
|
|
<DataTemplate x:Key="CompactRow">
|
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
|
|
|
<Border Style="{StaticResource RowBorder}" Padding="10,4" Margin="0,0" MinHeight="34"
|
|
|
|
|
MouseLeftButtonDown="TaskItem_Click" MouseMove="TaskItem_MouseMove">
|
2026-11-29 14:42:16 +01:00
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
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
|
|
|
<ColumnDefinition Width="36"/>
|
2026-11-29 14:42:16 +01:00
|
|
|
<ColumnDefinition Width="*"/>
|
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
|
|
|
<ColumnDefinition Width="120"/>
|
|
|
|
|
<ColumnDefinition Width="130"/>
|
|
|
|
|
<ColumnDefinition Width="64"/>
|
2026-11-29 14:42:16 +01:00
|
|
|
</Grid.ColumnDefinitions>
|
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
|
|
|
<CheckBox IsChecked="{Binding IsNotified, Mode=TwoWay}" Style="{StaticResource DoneCheck}" HorizontalAlignment="Left" VerticalAlignment="Center"
|
|
|
|
|
Command="{Binding DataContext.ToggleDoneCommand, RelativeSource={RelativeSource AncestorType=Window}}" CommandParameter="{Binding}"
|
|
|
|
|
ToolTip="{Binding DataContext[DoneTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center" Style="{StaticResource DoneDim}">
|
|
|
|
|
<TextBlock Style="{StaticResource KindGlyph}"/>
|
|
|
|
|
<TextBlock Text="{Binding Name}" FontSize="13" TextTrimming="CharacterEllipsis"/>
|
|
|
|
|
<TextBlock Text="{Binding AgeText}" FontSize="12" Margin="10,0,0,0" Foreground="{DynamicResource BadgeTextBrush}"/>
|
|
|
|
|
<TextBlock Text="{Binding Description}" FontSize="12" Margin="10,0,0,0" TextTrimming="CharacterEllipsis"
|
|
|
|
|
Foreground="{DynamicResource TextTertiaryBrush}"/>
|
2026-11-29 14:42:16 +01:00
|
|
|
</StackPanel>
|
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
|
|
|
<TextBlock Grid.Column="2" Text="{Binding RelativeDate}" Style="{StaticResource RelText}" FontWeight="Normal" VerticalAlignment="Center"/>
|
2026-11-29 14:42:16 +01:00
|
|
|
<TextBlock Grid.Column="3" Text="{Binding DisplayDate}" FontSize="12" VerticalAlignment="Center" Foreground="{DynamicResource TextSecondaryBrush}"/>
|
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
|
|
|
<StackPanel Grid.Column="4" Style="{StaticResource RowActions}">
|
2026-11-29 14:42:16 +01:00
|
|
|
<Button Content="" Style="{StaticResource RowIcon}"
|
|
|
|
|
Command="{Binding DataContext.EditTaskCommand, RelativeSource={RelativeSource AncestorType=Window}}"
|
|
|
|
|
ToolTip="{Binding DataContext[EditTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
|
|
|
|
|
<Button Content="" Style="{StaticResource RowIcon}"
|
|
|
|
|
Command="{Binding DataContext.DeleteTaskCommand, RelativeSource={RelativeSource AncestorType=Window}}"
|
|
|
|
|
ToolTip="{Binding DataContext[DeleteTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
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
|
|
|
<!-- Cards: calendar tile -->
|
2026-11-29 14:42:16 +01:00
|
|
|
<DataTemplate x:Key="CardItem">
|
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
|
|
|
<Border Width="236" Margin="0,0,12,12" CornerRadius="10" BorderThickness="1" Padding="14,12" Cursor="Hand"
|
|
|
|
|
Background="{DynamicResource CardBrush}" MouseLeftButtonDown="TaskItem_Click" MouseMove="TaskItem_MouseMove">
|
2026-11-29 14:42:16 +01:00
|
|
|
<Border.Style>
|
|
|
|
|
<Style TargetType="Border">
|
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
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource BorderBrush}"/>
|
2026-11-29 14:42:16 +01:00
|
|
|
<Style.Triggers>
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
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
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource TextTertiaryBrush}"/>
|
2026-11-29 14:42:16 +01:00
|
|
|
</Trigger>
|
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
|
|
|
<DataTrigger Value="True">
|
|
|
|
|
<DataTrigger.Binding>
|
|
|
|
|
<MultiBinding Converter="{StaticResource RefEquals}">
|
|
|
|
|
<Binding/>
|
|
|
|
|
<Binding Path="DataContext.SelectedTask" RelativeSource="{RelativeSource AncestorType=Window}"/>
|
|
|
|
|
</MultiBinding>
|
|
|
|
|
</DataTrigger.Binding>
|
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource PrimaryBrush}"/>
|
|
|
|
|
</DataTrigger>
|
2026-11-29 14:42:16 +01:00
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</Border.Style>
|
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
|
|
|
<Grid>
|
2026-11-29 14:42:16 +01:00
|
|
|
<Grid.ColumnDefinitions>
|
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
|
|
|
<ColumnDefinition Width="48"/>
|
2026-11-29 14:42:16 +01:00
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid.RowDefinitions>
|
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
|
|
|
<RowDefinition Height="*"/>
|
2026-11-29 14:42:16 +01:00
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
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
|
|
|
<Border Width="48" Height="52" CornerRadius="8" VerticalAlignment="Top" Style="{StaticResource DoneDim}"
|
|
|
|
|
Background="{Binding AccentColor, Converter={StaticResource HexToBrush}, ConverterParameter=0.14}">
|
2026-11-29 14:42:16 +01:00
|
|
|
<StackPanel VerticalAlignment="Center">
|
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
|
|
|
<TextBlock Text="{Binding DayText}" FontSize="20" FontWeight="SemiBold" HorizontalAlignment="Center"
|
2026-11-29 15:06:19 +01:00
|
|
|
Foreground="{Binding AccentColor, Converter={StaticResource HexToBrush}}"/>
|
2026-11-29 14:42:16 +01:00
|
|
|
<TextBlock Text="{Binding MonthText}" FontSize="10" FontWeight="SemiBold" HorizontalAlignment="Center" Margin="0,-2,0,0"
|
|
|
|
|
Foreground="{DynamicResource TextSecondaryBrush}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
|
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
|
|
|
<StackPanel Grid.Column="1" Margin="12,0,0,0" Style="{StaticResource DoneDim}">
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<TextBlock Style="{StaticResource KindGlyph}" Margin="0,0,6,0" FontSize="12"/>
|
|
|
|
|
<TextBlock Text="{Binding Name}" FontSize="13.5" FontWeight="Medium" TextTrimming="CharacterEllipsis" MaxWidth="140" ToolTip="{Binding Name}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<TextBlock Text="{Binding AgeText}" FontSize="12" Margin="0,3,0,0" TextTrimming="CharacterEllipsis" ToolTip="{Binding AgeText}"
|
|
|
|
|
Foreground="{DynamicResource BadgeTextBrush}"
|
|
|
|
|
Visibility="{Binding AgeText, Converter={StaticResource StringToVisibility}}"/>
|
|
|
|
|
<TextBlock Text="{Binding RelativeDate}" Style="{StaticResource RelText}" FontSize="12" FontWeight="Normal" Margin="0,3,0,0"/>
|
|
|
|
|
<TextBlock Text="{Binding Description}" FontSize="12" Margin="0,3,0,0" TextTrimming="CharacterEllipsis"
|
|
|
|
|
Foreground="{DynamicResource TextTertiaryBrush}"
|
2026-11-29 14:42:16 +01:00
|
|
|
Visibility="{Binding Description, Converter={StaticResource StringToVisibility}}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
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
|
|
|
<DockPanel Grid.Row="1" Grid.ColumnSpan="2" Margin="0,10,-4,-4" LastChildFill="False">
|
|
|
|
|
<CheckBox DockPanel.Dock="Left" IsChecked="{Binding IsNotified, Mode=TwoWay}" Style="{StaticResource DoneCheck}" VerticalAlignment="Center"
|
2026-11-29 14:42:16 +01:00
|
|
|
Command="{Binding DataContext.ToggleDoneCommand, RelativeSource={RelativeSource AncestorType=Window}}" CommandParameter="{Binding}"
|
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
|
|
|
ToolTip="{Binding DataContext[DoneTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
|
|
|
|
|
<StackPanel DockPanel.Dock="Right" Style="{StaticResource RowActions}">
|
|
|
|
|
<Button Content="" Style="{StaticResource RowIcon}"
|
|
|
|
|
Command="{Binding DataContext.EditTaskCommand, RelativeSource={RelativeSource AncestorType=Window}}"
|
|
|
|
|
ToolTip="{Binding DataContext[EditTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
|
|
|
|
|
<Button Content="" Style="{StaticResource RowIcon}"
|
|
|
|
|
Command="{Binding DataContext.DeleteTaskCommand, RelativeSource={RelativeSource AncestorType=Window}}"
|
|
|
|
|
ToolTip="{Binding DataContext[DeleteTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</DockPanel>
|
2026-11-29 14:42:16 +01:00
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
|
|
|
|
<ItemsPanelTemplate x:Key="StackItems"><VirtualizingStackPanel/></ItemsPanelTemplate>
|
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
|
|
|
<ItemsPanelTemplate x:Key="WrapItems"><WrapPanel Margin="4,8,0,0"/></ItemsPanelTemplate>
|
|
|
|
|
</Window.Resources>
|
2026-11-25 13:44:02 +01:00
|
|
|
|
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
|
|
|
<Grid x:Name="RootGrid">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="264"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="44"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
<!-- ===================== sidebar (full height) ===================== -->
|
|
|
|
|
<Border Grid.RowSpan="2" Background="{DynamicResource SidebarBrush}" BorderBrush="{DynamicResource DividerBrush}" BorderThickness="0,0,1,0"/>
|
|
|
|
|
|
|
|
|
|
<!-- app title in the caption area -->
|
|
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="18,0,0,0">
|
|
|
|
|
<Image Source="/Assets/app.png" Width="18" Height="18" RenderOptions.BitmapScalingMode="HighQuality"/>
|
|
|
|
|
<TextBlock Text="{Binding [AppTitle]}" FontSize="12.5" FontWeight="SemiBold" Margin="10,0,0,0" VerticalAlignment="Center"
|
|
|
|
|
Foreground="{DynamicResource SidebarTextBrush}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<DockPanel Grid.Row="1">
|
|
|
|
|
<!-- footer: credits -->
|
|
|
|
|
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" Margin="20,8,16,14">
|
|
|
|
|
<TextBlock Text="{Binding CopyrightText}" FontSize="11" Foreground="{DynamicResource SidebarSecondaryBrush}" VerticalAlignment="Center"/>
|
|
|
|
|
<TextBlock Text=" · " FontSize="11" Foreground="{DynamicResource SidebarSecondaryBrush}" VerticalAlignment="Center"/>
|
|
|
|
|
<TextBlock FontSize="11" VerticalAlignment="Center" ToolTip="{Binding [Discord]}">
|
|
|
|
|
<Hyperlink Command="{Binding OpenDiscordCommand}" Foreground="{DynamicResource SidebarSecondaryBrush}" TextDecorations="None">Discord</Hyperlink>
|
|
|
|
|
</TextBlock>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<!-- "Upcoming" -->
|
|
|
|
|
<Button DockPanel.Dock="Top" Margin="10,6,10,0" Style="{StaticResource NavButton}" Tag="{Binding IsAllUpcoming}" AutomationProperties.Name="{Binding [Upcoming]}"
|
|
|
|
|
Command="{Binding ShowUpcomingCommand}">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<TextBlock Text="" FontFamily="{StaticResource IconFont}" FontSize="14" Margin="0,0,12,0" VerticalAlignment="Center"
|
|
|
|
|
Foreground="{DynamicResource PrimaryBrush}"/>
|
|
|
|
|
<TextBlock Grid.Column="1" Text="{Binding [Upcoming]}" FontSize="13" VerticalAlignment="Center"/>
|
|
|
|
|
<Border Grid.Column="2" CornerRadius="9" MinWidth="20" Padding="6,1" Background="{DynamicResource PrimaryBrush}"
|
|
|
|
|
Visibility="{Binding UpcomingCount, Converter={StaticResource CountToVisibility}}"
|
|
|
|
|
ToolTip="{Binding [UpcomingBadgeTooltip]}">
|
|
|
|
|
<TextBlock Text="{Binding UpcomingCount}" FontSize="11" FontWeight="SemiBold" Foreground="White" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<!-- categories -->
|
|
|
|
|
<StackPanel DockPanel.Dock="Top" Visibility="{Binding HasCategoryNav, Converter={StaticResource BoolToVisibility}}">
|
|
|
|
|
<TextBlock Text="{Binding [Categories]}" Style="{StaticResource SectionLabel}" Margin="22,18,16,4"/>
|
|
|
|
|
<ItemsControl ItemsSource="{Binding CategoryNav}" Margin="10,0">
|
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Button Style="{StaticResource NavButton}" Tag="{Binding IsActive}" AutomationProperties.Name="{Binding Name}"
|
|
|
|
|
Command="{Binding DataContext.ShowCategoryCommand, RelativeSource={RelativeSource AncestorType=Window}}"
|
|
|
|
|
CommandParameter="{Binding Id}">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<TextBlock Text="{Binding Glyph}" FontFamily="{StaticResource IconFont}" FontSize="14" Margin="0,0,12,0" VerticalAlignment="Center"
|
|
|
|
|
Foreground="{Binding Color, Converter={StaticResource HexToBrush}}"/>
|
|
|
|
|
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="13" TextTrimming="CharacterEllipsis" VerticalAlignment="Center"/>
|
|
|
|
|
<TextBlock Grid.Column="2" Text="{Binding Count}" FontSize="12" FontWeight="Normal" VerticalAlignment="Center"
|
|
|
|
|
Foreground="{DynamicResource SidebarSecondaryBrush}"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Button>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
|
</ItemsControl>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<!-- folders header with "+" -->
|
|
|
|
|
<DockPanel DockPanel.Dock="Top" Margin="22,18,14,4">
|
|
|
|
|
<Button DockPanel.Dock="Right" Content="" Style="{StaticResource IconButton}" Width="24" Height="24" FontSize="11"
|
|
|
|
|
Command="{Binding AddFolderCommand}" ToolTip="{Binding [NewFolder]}" AutomationProperties.Name="{Binding [NewFolder]}"/>
|
|
|
|
|
<TextBlock Text="{Binding [Folders]}" Style="{StaticResource SectionLabel}" VerticalAlignment="Center"/>
|
|
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
|
|
<TreeView x:Name="FolderTree" Margin="10,0,10,0" Background="Transparent" BorderThickness="0"
|
|
|
|
|
ItemsSource="{Binding Folders}" SelectedItemChanged="FolderTree_SelectedItemChanged"
|
|
|
|
|
AllowDrop="True" Drop="TreeView_Drop" DragOver="TreeView_DragOver"
|
|
|
|
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
|
|
|
|
<TreeView.ItemContainerStyle>
|
|
|
|
|
<Style TargetType="TreeViewItem">
|
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource SidebarTextBrush}"/>
|
|
|
|
|
<Setter Property="AllowDrop" Value="True"/>
|
|
|
|
|
<EventSetter Event="Drop" Handler="TreeViewItem_Drop"/>
|
|
|
|
|
<EventSetter Event="DragOver" Handler="TreeViewItem_DragOver"/>
|
|
|
|
|
<EventSetter Event="DragEnter" Handler="TreeViewItem_DragEnter"/>
|
|
|
|
|
<EventSetter Event="DragLeave" Handler="TreeViewItem_DragLeave"/>
|
|
|
|
|
<EventSetter Event="PreviewMouseRightButtonDown" Handler="TreeViewItem_RightClick"/>
|
|
|
|
|
<EventSetter Event="PreviewMouseLeftButtonDown" Handler="TreeViewItem_PreviewMouseLeftButtonDown"/>
|
|
|
|
|
<EventSetter Event="PreviewMouseMove" Handler="TreeViewItem_PreviewMouseMove"/>
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="TreeViewItem">
|
|
|
|
|
<Grid Margin="0,1">
|
|
|
|
|
<Border x:Name="Bd" CornerRadius="6" Padding="10,7" Background="Transparent"
|
|
|
|
|
BorderThickness="1" BorderBrush="Transparent" Cursor="Hand">
|
|
|
|
|
<ContentPresenter ContentSource="Header" HorizontalAlignment="Stretch"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border x:Name="Bar" Width="3" Height="16" CornerRadius="1.5" HorizontalAlignment="Left"
|
|
|
|
|
Background="{DynamicResource PrimaryBrush}" Visibility="Collapsed"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource HoverBrush}"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="Tag" Value="DropTarget">
|
|
|
|
|
<Setter TargetName="Bd" Property="BorderBrush" Value="{DynamicResource PrimaryBrush}"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsSelected" Value="True">
|
|
|
|
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource AccentSubtleBrush}"/>
|
|
|
|
|
<Setter TargetName="Bar" Property="Visibility" Value="Visible"/>
|
|
|
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
</TreeView.ItemContainerStyle>
|
|
|
|
|
<TreeView.ItemTemplate>
|
|
|
|
|
<DataTemplate DataType="{x:Type models:Folder}">
|
2026-11-25 13:44:02 +01:00
|
|
|
<Grid>
|
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
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Path Data="{StaticResource FolderGeometry}" Width="16" Height="16" Margin="0,0,10,0" VerticalAlignment="Center"
|
|
|
|
|
StrokeThickness="1.3" StrokeLineJoin="Round"
|
|
|
|
|
Stroke="{Binding Color, Converter={StaticResource HexToBrush}}"
|
|
|
|
|
Fill="{Binding Color, Converter={StaticResource HexToBrush}, ConverterParameter=0.25}"/>
|
|
|
|
|
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="13" VerticalAlignment="Center"
|
|
|
|
|
TextTrimming="CharacterEllipsis" ToolTip="{Binding Name}"/>
|
|
|
|
|
<TextBlock Grid.Column="2" Text="{Binding Tasks.Count}" FontSize="12" FontWeight="Normal" Margin="8,0,0,0" VerticalAlignment="Center"
|
|
|
|
|
Foreground="{DynamicResource SidebarSecondaryBrush}"/>
|
2026-11-25 13:44:02 +01:00
|
|
|
</Grid>
|
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
|
|
|
</DataTemplate>
|
|
|
|
|
</TreeView.ItemTemplate>
|
|
|
|
|
<TreeView.ContextMenu>
|
|
|
|
|
<ContextMenu>
|
|
|
|
|
<MenuItem Header="{Binding [AddTaskToFolder]}" Click="AddTaskToFolder_Click">
|
|
|
|
|
<MenuItem.Icon><TextBlock Text="" FontFamily="{StaticResource IconFont}" FontSize="12"/></MenuItem.Icon>
|
|
|
|
|
</MenuItem>
|
|
|
|
|
<MenuItem Header="{Binding [Rename]}" Command="{Binding RenameFolderCommand}">
|
|
|
|
|
<MenuItem.Icon><TextBlock Text="" FontFamily="{StaticResource IconFont}" FontSize="12"/></MenuItem.Icon>
|
|
|
|
|
</MenuItem>
|
|
|
|
|
<MenuItem Header="{Binding [Color]}" ItemsSource="{Binding FolderColors}">
|
|
|
|
|
<MenuItem.Icon><TextBlock Text="" FontFamily="{StaticResource IconFont}" FontSize="12"/></MenuItem.Icon>
|
|
|
|
|
<MenuItem.ItemContainerStyle>
|
|
|
|
|
<Style TargetType="MenuItem" BasedOn="{StaticResource {x:Type MenuItem}}">
|
|
|
|
|
<Setter Property="Command" Value="{Binding DataContext.SetFolderColorCommand, RelativeSource={RelativeSource AncestorType=ContextMenu}}"/>
|
|
|
|
|
<Setter Property="CommandParameter" Value="{Binding}"/>
|
|
|
|
|
<Setter Property="HeaderTemplate">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Border Width="56" Height="12" CornerRadius="6" Background="{Binding Converter={StaticResource HexToBrush}}"/>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
</MenuItem.ItemContainerStyle>
|
|
|
|
|
</MenuItem>
|
|
|
|
|
<Separator/>
|
|
|
|
|
<MenuItem Header="{Binding [MoveUp]}" Command="{Binding MoveFolderUpCommand}">
|
|
|
|
|
<MenuItem.Icon><TextBlock Text="" FontFamily="{StaticResource IconFont}" FontSize="12"/></MenuItem.Icon>
|
|
|
|
|
</MenuItem>
|
|
|
|
|
<MenuItem Header="{Binding [MoveDown]}" Command="{Binding MoveFolderDownCommand}">
|
|
|
|
|
<MenuItem.Icon><TextBlock Text="" FontFamily="{StaticResource IconFont}" FontSize="12"/></MenuItem.Icon>
|
|
|
|
|
</MenuItem>
|
|
|
|
|
<Separator/>
|
|
|
|
|
<MenuItem Header="{Binding [Delete]}" Command="{Binding DeleteFolderCommand}" Foreground="{DynamicResource DangerBrush}">
|
|
|
|
|
<MenuItem.Icon><TextBlock Text="" FontFamily="{StaticResource IconFont}" FontSize="12"/></MenuItem.Icon>
|
|
|
|
|
</MenuItem>
|
|
|
|
|
</ContextMenu>
|
|
|
|
|
</TreeView.ContextMenu>
|
|
|
|
|
</TreeView>
|
|
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
|
|
<!-- ===================== caption (right part) ===================== -->
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top">
|
|
|
|
|
<Button Content="" Style="{StaticResource IconButton}" Width="34" Height="30" FontSize="14" Margin="0,7,8,0" VerticalAlignment="Top"
|
|
|
|
|
Command="{Binding OpenSettingsCommand}" ToolTip="{Binding [Settings]}" AutomationProperties.Name="{Binding [Settings]}" WindowChrome.IsHitTestVisibleInChrome="True"/>
|
|
|
|
|
<Button Content="" Style="{StaticResource CaptionButton}" Click="MinimizeButton_Click"
|
|
|
|
|
ToolTip="{Binding [Minimize]}" WindowChrome.IsHitTestVisibleInChrome="True"/>
|
|
|
|
|
<Button x:Name="MaximizeButton" Content="" Style="{StaticResource CaptionButton}" Click="MaximizeButton_Click"
|
|
|
|
|
ToolTip="{Binding [Maximize]}" WindowChrome.IsHitTestVisibleInChrome="True"/>
|
|
|
|
|
<Button Content="" Style="{StaticResource CloseCaptionButton}" Click="CloseButton_Click"
|
|
|
|
|
ToolTip="{Binding [Close]}" WindowChrome.IsHitTestVisibleInChrome="True"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<!-- ===================== content ===================== -->
|
|
|
|
|
<Grid Grid.Column="1" Grid.Row="1" Margin="32,4,32,24">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
<!-- header -->
|
|
|
|
|
<DockPanel>
|
|
|
|
|
<Button DockPanel.Dock="Right" Style="{StaticResource PrimaryButton}" Command="{Binding AddTaskCommand}" VerticalAlignment="Center" AutomationProperties.Name="{Binding [NewEntry]}"
|
|
|
|
|
ToolTip="Ctrl+N">
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<TextBlock Text="" FontFamily="{StaticResource IconFont}" FontSize="11" VerticalAlignment="Center" Margin="0,1,8,0"/>
|
|
|
|
|
<TextBlock Text="{Binding [NewEntry]}"/>
|
2026-11-25 13:44:02 +01:00
|
|
|
</StackPanel>
|
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
|
|
|
</Button>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<Border Width="34" Height="34" CornerRadius="8" VerticalAlignment="Center" Margin="0,0,14,0"
|
|
|
|
|
Background="{Binding HeaderColor, Converter={StaticResource HexToBrush}, ConverterParameter=0.15}">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Path Data="{StaticResource FolderGeometry}" Width="16" Height="16" StrokeThickness="1.4" StrokeLineJoin="Round"
|
|
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
|
Stroke="{Binding HeaderColor, Converter={StaticResource HexToBrush}}"
|
|
|
|
|
Visibility="{Binding IsUpcomingMode, Converter={StaticResource InverseBoolToVisibility}}"/>
|
|
|
|
|
<TextBlock Text="{Binding HeaderGlyph}" FontFamily="{StaticResource IconFont}" FontSize="16"
|
|
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
|
Foreground="{Binding HeaderColor, Converter={StaticResource HexToBrush}}"
|
|
|
|
|
Visibility="{Binding IsUpcomingMode, Converter={StaticResource BoolToVisibility}}"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
<StackPanel VerticalAlignment="Center">
|
|
|
|
|
<TextBlock Text="{Binding HeaderTitle}" FontSize="21" FontWeight="SemiBold" TextTrimming="CharacterEllipsis"/>
|
|
|
|
|
<TextBlock Text="{Binding TaskCountText}" FontSize="12" Margin="0,1,0,0" Foreground="{DynamicResource TextSecondaryBrush}"/>
|
2026-11-25 13:44:02 +01:00
|
|
|
</StackPanel>
|
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
|
|
|
</StackPanel>
|
|
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
|
|
<!-- toolbar -->
|
|
|
|
|
<DockPanel Grid.Row="1" Margin="0,18,0,12" LastChildFill="False">
|
|
|
|
|
<Border DockPanel.Dock="Left" Width="240" Height="32" CornerRadius="6" BorderThickness="1"
|
|
|
|
|
Background="{DynamicResource CardBrush}">
|
|
|
|
|
<Border.Style>
|
|
|
|
|
<Style TargetType="Border">
|
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource BorderBrush}"/>
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<Trigger Property="IsKeyboardFocusWithin" Value="True">
|
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource PrimaryBrush}"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</Border.Style>
|
|
|
|
|
<Grid>
|
|
|
|
|
<TextBlock Text="" FontFamily="{StaticResource IconFont}" FontSize="12" Margin="11,0,0,0" VerticalAlignment="Center"
|
|
|
|
|
Foreground="{DynamicResource TextTertiaryBrush}" IsHitTestVisible="False"/>
|
|
|
|
|
<TextBox x:Name="SearchBox" Style="{StaticResource SearchBox}" Padding="31,0,28,0"
|
|
|
|
|
Text="{Binding SearchText, UpdateSourceTrigger=PropertyChanged, Delay=150}"/>
|
|
|
|
|
<TextBlock Text="{Binding [SearchPlaceholder]}" FontSize="13" Margin="33,0,0,0" VerticalAlignment="Center" IsHitTestVisible="False"
|
|
|
|
|
Foreground="{DynamicResource TextTertiaryBrush}">
|
|
|
|
|
<TextBlock.Style>
|
|
|
|
|
<Style TargetType="TextBlock">
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed"/>
|
Upcoming view, search/filters, lead reminders, birthdays, folder colors, ICS, sound, undo
- Upcoming: all folders grouped by overdue/today/tomorrow/7 days/later/done
- Search (Ctrl+F) + All/Today/Overdue filters + hide done (persisted)
- Lead reminder 1/2/3 days or 1 week before; birth year shows age
- Several due reminders are combined into one balloon
- Folder colors and reordering (drag, context menu)
- iCalendar export with RRULE and VALARM
- Generated reminder chime (ComfyUI / Stable Audio), can be turned off
- Undo snackbar for deleted tasks/folders (Ctrl+Z), Ctrl+N, Del, Esc
- 41 tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:03:36 +01:00
|
|
|
<Style.Triggers>
|
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
|
|
|
<DataTrigger Binding="{Binding Text, ElementName=SearchBox}" Value="">
|
|
|
|
|
<Setter Property="Visibility" Value="Visible"/>
|
Upcoming view, search/filters, lead reminders, birthdays, folder colors, ICS, sound, undo
- Upcoming: all folders grouped by overdue/today/tomorrow/7 days/later/done
- Search (Ctrl+F) + All/Today/Overdue filters + hide done (persisted)
- Lead reminder 1/2/3 days or 1 week before; birth year shows age
- Several due reminders are combined into one balloon
- Folder colors and reordering (drag, context menu)
- iCalendar export with RRULE and VALARM
- Generated reminder chime (ComfyUI / Stable Audio), can be turned off
- Undo snackbar for deleted tasks/folders (Ctrl+Z), Ctrl+N, Del, Esc
- 41 tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:03:36 +01:00
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
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
|
|
|
</TextBlock.Style>
|
|
|
|
|
</TextBlock>
|
|
|
|
|
<Button Content="" Style="{StaticResource IconButton}" Width="22" Height="22" FontSize="9" HorizontalAlignment="Right" Margin="0,0,4,0"
|
|
|
|
|
Command="{Binding ClearSearchCommand}" ToolTip="Esc">
|
|
|
|
|
<Button.Visibility>
|
|
|
|
|
<Binding Path="Text" ElementName="SearchBox" Converter="{StaticResource StringToVisibility}"/>
|
|
|
|
|
</Button.Visibility>
|
|
|
|
|
</Button>
|
|
|
|
|
</Grid>
|
2026-11-25 13:44:02 +01:00
|
|
|
</Border>
|
|
|
|
|
|
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
|
|
|
<Border DockPanel.Dock="Left" Margin="12,0,0,0" Style="{StaticResource SegmentHost}" VerticalAlignment="Center">
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<RadioButton GroupName="filter" Content="{Binding [FilterAll]}" IsChecked="{Binding IsFilterAll}" Style="{StaticResource Segment}"/>
|
|
|
|
|
<RadioButton GroupName="filter" Content="{Binding [FilterToday]}" IsChecked="{Binding IsFilterToday}" Style="{StaticResource Segment}"/>
|
|
|
|
|
<RadioButton GroupName="filter" Content="{Binding [FilterOverdue]}" IsChecked="{Binding IsFilterOverdue}" Style="{StaticResource Segment}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
Upcoming view, search/filters, lead reminders, birthdays, folder colors, ICS, sound, undo
- Upcoming: all folders grouped by overdue/today/tomorrow/7 days/later/done
- Search (Ctrl+F) + All/Today/Overdue filters + hide done (persisted)
- Lead reminder 1/2/3 days or 1 week before; birth year shows age
- Several due reminders are combined into one balloon
- Folder colors and reordering (drag, context menu)
- iCalendar export with RRULE and VALARM
- Generated reminder chime (ComfyUI / Stable Audio), can be turned off
- Undo snackbar for deleted tasks/folders (Ctrl+Z), Ctrl+N, Del, Esc
- 41 tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:03:36 +01:00
|
|
|
|
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
|
|
|
<CheckBox DockPanel.Dock="Right" Style="{StaticResource ToggleSwitch}" IsChecked="{Binding HideDone}" VerticalAlignment="Center"
|
|
|
|
|
Content="{Binding [HideDone]}" Margin="16,0,0,0"/>
|
Upcoming view, search/filters, lead reminders, birthdays, folder colors, ICS, sound, undo
- Upcoming: all folders grouped by overdue/today/tomorrow/7 days/later/done
- Search (Ctrl+F) + All/Today/Overdue filters + hide done (persisted)
- Lead reminder 1/2/3 days or 1 week before; birth year shows age
- Several due reminders are combined into one balloon
- Folder colors and reordering (drag, context menu)
- iCalendar export with RRULE and VALARM
- Generated reminder chime (ComfyUI / Stable Audio), can be turned off
- Undo snackbar for deleted tasks/folders (Ctrl+Z), Ctrl+N, Del, Esc
- 41 tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:03:36 +01:00
|
|
|
|
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
|
|
|
<Border DockPanel.Dock="Right" Style="{StaticResource SegmentHost}" VerticalAlignment="Center">
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<RadioButton GroupName="view" Content="" IsChecked="{Binding IsViewList}" Style="{StaticResource IconSegment}" ToolTip="{Binding [ViewList]}" AutomationProperties.Name="{Binding [ViewList]}"/>
|
|
|
|
|
<RadioButton GroupName="view" Content="" IsChecked="{Binding IsViewCompact}" Style="{StaticResource IconSegment}" ToolTip="{Binding [ViewCompact]}" AutomationProperties.Name="{Binding [ViewCompact]}"/>
|
|
|
|
|
<RadioButton GroupName="view" Content="" IsChecked="{Binding IsViewCards}" Style="{StaticResource IconSegment}" ToolTip="{Binding [ViewCards]}" AutomationProperties.Name="{Binding [ViewCards]}"/>
|
|
|
|
|
<Border Width="1" Margin="4,5" Background="{DynamicResource BorderBrush}"/>
|
|
|
|
|
<ToggleButton Content="" IsChecked="{Binding GroupByMonth}" Style="{StaticResource IconToggle}" ToolTip="{Binding [GroupByMonth]}" AutomationProperties.Name="{Binding [GroupByMonth]}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
</DockPanel>
|
Upcoming view, search/filters, lead reminders, birthdays, folder colors, ICS, sound, undo
- Upcoming: all folders grouped by overdue/today/tomorrow/7 days/later/done
- Search (Ctrl+F) + All/Today/Overdue filters + hide done (persisted)
- Lead reminder 1/2/3 days or 1 week before; birth year shows age
- Several due reminders are combined into one balloon
- Folder colors and reordering (drag, context menu)
- iCalendar export with RRULE and VALARM
- Generated reminder chime (ComfyUI / Stable Audio), can be turned off
- Undo snackbar for deleted tasks/folders (Ctrl+Z), Ctrl+N, Del, Esc
- 41 tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:03:36 +01:00
|
|
|
|
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
|
|
|
<!-- list -->
|
|
|
|
|
<Border Grid.Row="2" CornerRadius="10" BorderThickness="1" Background="{DynamicResource CardBrush}" BorderBrush="{DynamicResource BorderBrush}">
|
|
|
|
|
<Grid>
|
|
|
|
|
<ScrollViewer x:Name="ListScroll" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Padding="6,6,4,6"
|
|
|
|
|
Visibility="{Binding HasVisibleTasks, Converter={StaticResource BoolToVisibility}}">
|
|
|
|
|
<ItemsControl ItemsSource="{Binding TasksView}">
|
|
|
|
|
<ItemsControl.Style>
|
|
|
|
|
<Style TargetType="ItemsControl">
|
|
|
|
|
<Setter Property="ItemTemplate" Value="{StaticResource ListRow}"/>
|
|
|
|
|
<Setter Property="ItemsPanel" Value="{StaticResource StackItems}"/>
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding ViewMode}" Value="compact">
|
|
|
|
|
<Setter Property="ItemTemplate" Value="{StaticResource CompactRow}"/>
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
<DataTrigger Binding="{Binding ViewMode}" Value="cards">
|
|
|
|
|
<Setter Property="ItemTemplate" Value="{StaticResource CardItem}"/>
|
|
|
|
|
<Setter Property="ItemsPanel" Value="{StaticResource WrapItems}"/>
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</ItemsControl.Style>
|
|
|
|
|
<ItemsControl.GroupStyle>
|
|
|
|
|
<GroupStyle>
|
|
|
|
|
<GroupStyle.ContainerStyle>
|
|
|
|
|
<Style TargetType="GroupItem">
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="GroupItem">
|
|
|
|
|
<StackPanel>
|
|
|
|
|
<ToggleButton x:Name="Hdr" IsChecked="True" Cursor="Hand" Margin="4,10,0,4" HorizontalAlignment="Left">
|
|
|
|
|
<ToggleButton.Template>
|
|
|
|
|
<ControlTemplate TargetType="ToggleButton">
|
|
|
|
|
<Border x:Name="b" Background="Transparent" Padding="6,3" CornerRadius="5">
|
2026-11-29 15:06:19 +01:00
|
|
|
<StackPanel Orientation="Horizontal">
|
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
|
|
|
<TextBlock Text="" FontFamily="{StaticResource IconFont}" FontSize="9" VerticalAlignment="Center"
|
|
|
|
|
Margin="0,0,8,0" Foreground="{DynamicResource TextTertiaryBrush}" RenderTransformOrigin="0.5,0.5">
|
|
|
|
|
<TextBlock.RenderTransform>
|
|
|
|
|
<RotateTransform x:Name="Rot" Angle="0"/>
|
|
|
|
|
</TextBlock.RenderTransform>
|
|
|
|
|
</TextBlock>
|
|
|
|
|
<ContentPresenter/>
|
2026-11-29 15:06:19 +01:00
|
|
|
</StackPanel>
|
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
|
|
|
</Border>
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
|
<Setter TargetName="b" Property="Background" Value="{DynamicResource HoverBrush}"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsChecked" Value="False">
|
|
|
|
|
<Trigger.EnterActions>
|
|
|
|
|
<BeginStoryboard><Storyboard>
|
|
|
|
|
<DoubleAnimation Storyboard.TargetName="Rot" Storyboard.TargetProperty="Angle" To="-90" Duration="0:0:0.15"/>
|
|
|
|
|
</Storyboard></BeginStoryboard>
|
|
|
|
|
</Trigger.EnterActions>
|
|
|
|
|
<Trigger.ExitActions>
|
|
|
|
|
<BeginStoryboard><Storyboard>
|
|
|
|
|
<DoubleAnimation Storyboard.TargetName="Rot" Storyboard.TargetProperty="Angle" To="0" Duration="0:0:0.15"/>
|
|
|
|
|
</Storyboard></BeginStoryboard>
|
|
|
|
|
</Trigger.ExitActions>
|
|
|
|
|
</Trigger>
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</ToggleButton.Template>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<TextBlock Text="{Binding Name, Converter={StaticResource BucketHeader}}" FontSize="11.5" FontWeight="SemiBold"
|
|
|
|
|
Foreground="{DynamicResource TextSecondaryBrush}"/>
|
|
|
|
|
<TextBlock Text="{Binding ItemCount}" FontSize="11.5" Margin="8,0,0,0" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</ToggleButton>
|
|
|
|
|
<ItemsPresenter Visibility="{Binding IsChecked, ElementName=Hdr, Converter={StaticResource BoolToVisibility}}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
</GroupStyle.ContainerStyle>
|
|
|
|
|
</GroupStyle>
|
|
|
|
|
</ItemsControl.GroupStyle>
|
|
|
|
|
</ItemsControl>
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
|
|
|
|
<!-- empty state -->
|
|
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" MaxWidth="360"
|
|
|
|
|
Visibility="{Binding HasVisibleTasks, Converter={StaticResource InverseBoolToVisibility}}">
|
|
|
|
|
<TextBlock Text="" FontFamily="{StaticResource IconFont}" FontSize="36" HorizontalAlignment="Center"
|
|
|
|
|
Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
|
|
|
<TextBlock Text="{Binding EmptyTitle}" FontSize="15" FontWeight="SemiBold" HorizontalAlignment="Center" Margin="0,16,0,0"/>
|
|
|
|
|
<TextBlock Text="{Binding EmptyHint}" FontSize="13" HorizontalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap"
|
|
|
|
|
Margin="0,6,0,0" Foreground="{DynamicResource TextSecondaryBrush}"/>
|
|
|
|
|
<Button Content="{Binding [NewEntry]}" Command="{Binding AddTaskCommand}" Style="{StaticResource SubtleButton}"
|
|
|
|
|
HorizontalAlignment="Center" Margin="0,18,0,0"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
2026-11-25 13:44:02 +01:00
|
|
|
|
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
|
|
|
<!-- undo snackbar (slides up) -->
|
|
|
|
|
<Border Grid.Row="2" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,0,0,18" CornerRadius="8" Padding="16,6,6,6"
|
|
|
|
|
Background="{DynamicResource SnackbarBrush}" Opacity="0" IsHitTestVisible="{Binding IsUndoVisible}">
|
|
|
|
|
<Border.RenderTransform>
|
|
|
|
|
<TranslateTransform Y="12"/>
|
|
|
|
|
</Border.RenderTransform>
|
|
|
|
|
<Border.Effect>
|
|
|
|
|
<DropShadowEffect BlurRadius="16" ShadowDepth="4" Opacity="0.25" Color="Black"/>
|
|
|
|
|
</Border.Effect>
|
|
|
|
|
<Border.Style>
|
|
|
|
|
<Style TargetType="Border">
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding IsUndoVisible}" Value="True">
|
|
|
|
|
<DataTrigger.EnterActions>
|
|
|
|
|
<BeginStoryboard>
|
|
|
|
|
<Storyboard>
|
|
|
|
|
<DoubleAnimation Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.16"/>
|
|
|
|
|
<DoubleAnimation Storyboard.TargetProperty="RenderTransform.Y" To="0" Duration="0:0:0.2">
|
|
|
|
|
<DoubleAnimation.EasingFunction><CubicEase EasingMode="EaseOut"/></DoubleAnimation.EasingFunction>
|
|
|
|
|
</DoubleAnimation>
|
|
|
|
|
</Storyboard>
|
|
|
|
|
</BeginStoryboard>
|
|
|
|
|
</DataTrigger.EnterActions>
|
|
|
|
|
<DataTrigger.ExitActions>
|
|
|
|
|
<BeginStoryboard>
|
|
|
|
|
<Storyboard>
|
|
|
|
|
<DoubleAnimation Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.16"/>
|
|
|
|
|
<DoubleAnimation Storyboard.TargetProperty="RenderTransform.Y" To="12" Duration="0:0:0.16"/>
|
|
|
|
|
</Storyboard>
|
|
|
|
|
</BeginStoryboard>
|
|
|
|
|
</DataTrigger.ExitActions>
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</Border.Style>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<TextBlock Text="{Binding UndoText}" Foreground="White" FontSize="13" VerticalAlignment="Center" MaxWidth="420" TextTrimming="CharacterEllipsis"/>
|
|
|
|
|
<Button Content="{Binding [Undo]}" Command="{Binding UndoCommand}" Margin="18,0,0,0" Cursor="Hand" ToolTip="Ctrl+Z">
|
|
|
|
|
<Button.Template>
|
|
|
|
|
<ControlTemplate TargetType="Button">
|
|
|
|
|
<Border x:Name="b" CornerRadius="5" Padding="10,4" Background="Transparent">
|
|
|
|
|
<TextBlock Text="{TemplateBinding Content}" Foreground="#A9ABFF" FontWeight="SemiBold" FontSize="13"/>
|
2026-11-25 13:44:02 +01:00
|
|
|
</Border>
|
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
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
|
<Setter TargetName="b" Property="Background" Value="#22FFFFFF"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
2026-11-25 13:44:02 +01:00
|
|
|
</Grid>
|
|
|
|
|
</Window>
|