Professional redesign: native window, settings, calmer UI
- WindowChrome: resizable, snap layouts, native shadow, DWM rounded corners; size/position remembered; fade-in after load (no theme flash) - Menu bar replaced by a settings window (theme system/light/dark, language, sound, autostart, categories, data, shortcuts, about) - Shared styles in Themes/Controls.xaml; neutral palette with one accent applied to Application.Resources (context menus/tooltips themed) - Rows: To-Do style check left, title + details, relative date right, actions on hover, visible selection (Enter edits, Del deletes) - No glow/scale effects; subtle animations (dialogs, snackbar, chevrons) - Checking a recurring task moves it to the next date (with undo) - Themed combo box, date picker, check box; neutral dialog headers - New flat app icon (tools/make_icon.py) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
33
Core/DialogAnimation.cs
Normal file
33
Core/DialogAnimation.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
#nullable enable
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
|
||||
namespace ReminderOrganizer
|
||||
{
|
||||
/// <summary>Subtle open animation for dialogs: fade in + 2 % scale, 140 ms, ease-out.</summary>
|
||||
public static class DialogAnimation
|
||||
{
|
||||
public static void Attach(Window window)
|
||||
{
|
||||
window.Opacity = 0;
|
||||
window.Loaded += (_, _) =>
|
||||
{
|
||||
var ease = new CubicEase { EasingMode = EasingMode.EaseOut };
|
||||
var duration = TimeSpan.FromMilliseconds(140);
|
||||
window.BeginAnimation(UIElement.OpacityProperty, new DoubleAnimation(0, 1, duration) { EasingFunction = ease });
|
||||
|
||||
if (window.Content is FrameworkElement root)
|
||||
{
|
||||
var scale = new ScaleTransform(0.98, 0.98);
|
||||
root.RenderTransformOrigin = new Point(0.5, 0.5);
|
||||
root.RenderTransform = scale;
|
||||
var anim = new DoubleAnimation(0.98, 1, duration) { EasingFunction = ease };
|
||||
scale.BeginAnimation(ScaleTransform.ScaleXProperty, anim);
|
||||
scale.BeginAnimation(ScaleTransform.ScaleYProperty, anim);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user